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

This commit is contained in:
Jenkins 2017-01-02 08:12:21 +00:00 committed by Gerrit Code Review
commit fea7c207f1
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class FindBaseDirTest(base.BaseTestCase):
self.assertIsNotNone(d)
# check that project_root is not empty
self.assertTrue(len(d) > 0)
self.assertGreater(len(d), 0)
def test_find_development_root(self):
d = PathFinder.find_development_root()
@ -32,4 +32,4 @@ class FindBaseDirTest(base.BaseTestCase):
self.assertIsNotNone(d)
# check that project_root is not empty
self.assertTrue(len(d) > 0)
self.assertGreater(len(d), 0)