Merge "Use assertGreater(len(x), y) instead of assertTrue(len(x) > y)"

This commit is contained in:
Jenkins 2017-02-04 00:12:57 +00:00 committed by Gerrit Code Review
commit 10420f68be
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ class L3AgentTestFramework(base.BaseSudoTestCase):
def _assert_internal_devices(self, router):
internal_devices = router.router[constants.INTERFACE_KEY]
self.assertTrue(len(internal_devices))
self.assertGreater(len(internal_devices), 0)
for device in internal_devices:
self.assertTrue(self.device_exists_with_ips_and_mac(
device, router.get_internal_device_name, router.ns_name))