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 nova delete keypair with shade client.
[yardstick.git]
/
yardstick
/
tests
/
unit
/
benchmark
/
scenarios
/
lib
/
test_get_flavor.py
diff --git
a/yardstick/tests/unit/benchmark/scenarios/lib/test_get_flavor.py
b/yardstick/tests/unit/benchmark/scenarios/lib/test_get_flavor.py
index
bf12e0a
..
15a6f7c
100644
(file)
--- a/
yardstick/tests/unit/benchmark/scenarios/lib/test_get_flavor.py
+++ b/
yardstick/tests/unit/benchmark/scenarios/lib/test_get_flavor.py
@@
-22,12
+22,4
@@
class GetFlavorTestCase(unittest.TestCase):
args = {"options": options}
obj = GetFlavor(args, {})
obj.run({})
args = {"options": options}
obj = GetFlavor(args, {})
obj.run({})
- self.assertTrue(mock_get_flavor_by_name.called)
-
-
-def main():
- unittest.main()
-
-
-if __name__ == '__main__':
- main()
+ mock_get_flavor_by_name.assert_called_once()