Replace cinder create volume with shade client.
[yardstick.git] / yardstick / tests / unit / benchmark / scenarios / lib / test_create_port.py
index 0f15058..bea02a6 100644 (file)
@@ -24,12 +24,4 @@ class CreatePortTestCase(unittest.TestCase):
         args = {"options": options}
         obj = CreatePort(args, {})
         obj.run({})
-        self.assertTrue(mock_get_neutron_client.called)
-
-
-def main():
-    unittest.main()
-
-
-if __name__ == '__main__':
-    main()
+        mock_get_neutron_client.assert_called_once()