Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Replace cinder create volume with shade client.
[yardstick.git]
/
yardstick
/
tests
/
unit
/
benchmark
/
scenarios
/
lib
/
test_create_port.py
diff --git
a/yardstick/tests/unit/benchmark/scenarios/lib/test_create_port.py
b/yardstick/tests/unit/benchmark/scenarios/lib/test_create_port.py
index
0f15058
..
bea02a6
100644
(file)
--- a/
yardstick/tests/unit/benchmark/scenarios/lib/test_create_port.py
+++ b/
yardstick/tests/unit/benchmark/scenarios/lib/test_create_port.py
@@
-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()