2019-09-13 11:19:30 |
Takashi Natsume |
description |
At [1], ther is a misuse of assertGreaterEqual
self.assertGreaterEqual(6, len(fake_notifier.VERSIONED_NOTIFICATIONS),
It should be as follows:
self.assertGreaterEqual(len(fake_notifier.VERSIONED_NOTIFICATIONS), 6
https://github.com/openstack/nova/blob/db5caf2ff8f33e8b3e7f28f041127ee4ac8b1897/nova/tests/functional/notification_sample_tests/test_instance.py#L316-L317 [1]
https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertGreaterEqual |
At [1], there is a misuse of assertGreaterEqual
self.assertGreaterEqual(6, len(fake_notifier.VERSIONED_NOTIFICATIONS),
It should be as follows:
self.assertGreaterEqual(len(fake_notifier.VERSIONED_NOTIFICATIONS), 6
https://github.com/openstack/nova/blob/db5caf2ff8f33e8b3e7f28f041127ee4ac8b1897/nova/tests/functional/notification_sample_tests/test_instance.py#L316-L317 [1]
https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertGreaterEqual |
|