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

This commit is contained in:
Jenkins 2016-12-05 17:09:48 +00:00 committed by Gerrit Code Review
commit 5c08aaeed3

@ -353,7 +353,7 @@ class TestRPCServer(test_utils.BaseTestCase, ServerSetupMixin):
self.assertIsInstance(ex, ValueError)
self.assertEqual('dsfoo', str(ex))
self.assertTrue(len(debugs) == 0)
self.assertTrue(len(errors) > 0)
self.assertGreater(len(errors), 0)
else:
self.assertTrue(False)
@ -391,7 +391,7 @@ class TestRPCServer(test_utils.BaseTestCase, ServerSetupMixin):
except Exception as ex:
self.assertIsInstance(ex, ValueError)
self.assertEqual('dsfoo', str(ex))
self.assertTrue(len(debugs) > 0)
self.assertGreater(len(debugs), 0)
self.assertTrue(len(errors) == 0)
else:
self.assertTrue(False)