Merge "Use assertGreater(len(x), 0) instead of assertTrue(len(x) > 0)"
This commit is contained in:
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user