Skip to content

Commit 2e5d6a6

Browse files
author
zheng yin
committed
Use assertGreater replace assertTrue
we can use assertGreater(a,b) to replace assertTrue(a>b) Change-Id: Idd92a99bf5fd25785a47645d46bcfcad23ed870a
1 parent 80ce3be commit 2e5d6a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/tests/functional/identity/v3/test_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_project_list_with_domain(self):
6666
items = self.parse_listing(raw_output)
6767
self.assert_table_structure(items, common.BASIC_LIST_HEADERS)
6868
self.assertIn(project_name, raw_output)
69-
self.assertTrue(len(items) > 0)
69+
self.assertGreater(len(items), 0)
7070

7171
def test_project_set(self):
7272
project_name = self._create_dummy_project()

0 commit comments

Comments
 (0)