summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorzheng yin <yin.zheng@easystack.cn>2016-09-22 19:35:05 +0800
committerzheng yin <yin.zheng@easystack.cn>2016-09-23 13:49:04 +0800
commit2e5d6a67f628aa00aa4edcc8568a2a6c30c4c7aa (patch)
tree413bb7a56a82717144936b8a14d7816cf1dbc63c /openstackclient
parent80ce3bee6fef0c3fed0816b8f0a5908cc5999fd3 (diff)
downloadpython-openstackclient-2e5d6a67f628aa00aa4edcc8568a2a6c30c4c7aa.tar.gz
Use assertGreater replace assertTrue
we can use assertGreater(a,b) to replace assertTrue(a>b) Change-Id: Idd92a99bf5fd25785a47645d46bcfcad23ed870a
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/tests/functional/identity/v3/test_project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/functional/identity/v3/test_project.py b/openstackclient/tests/functional/identity/v3/test_project.py
index 77438841..5639dc16 100644
--- a/openstackclient/tests/functional/identity/v3/test_project.py
+++ b/openstackclient/tests/functional/identity/v3/test_project.py
@@ -66,7 +66,7 @@ class ProjectTests(common.IdentityTests):
items = self.parse_listing(raw_output)
self.assert_table_structure(items, common.BASIC_LIST_HEADERS)
self.assertIn(project_name, raw_output)
- self.assertTrue(len(items) > 0)
+ self.assertGreater(len(items), 0)
def test_project_set(self):
project_name = self._create_dummy_project()