Comment 0 for bug 1843885

Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

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