summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/identity
diff options
context:
space:
mode:
authorliuyamin <liuyamin@fiberhome.com>2018-11-14 11:19:25 +0800
committerliuyamin <liuyamin@fiberhome.com>2018-11-14 14:50:05 +0800
commit5bec3b7e3b7d4fed1bedd5a848294f550d30ed47 (patch)
treee2f2c5660a314fca546def9f1d987523c233ec25 /openstackclient/tests/functional/identity
parentb90c780d2b99a91dd479bcc5f20caddcfb652f76 (diff)
downloadpython-openstackclient-5bec3b7e3b7d4fed1bedd5a848294f550d30ed47.tar.gz
Replace assertEqual(True/False, expr) with assertTrue/assertFalse
In some cases, If the result of expr is a boolen value, we shoud use assertTrue/assertFalse to instead. Because it is clear and simple. Change-Id: I53b345fc3915a7b0e737e9dd4d58fe09c746d61c
Diffstat (limited to 'openstackclient/tests/functional/identity')
-rw-r--r--openstackclient/tests/functional/identity/v2/test_project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/functional/identity/v2/test_project.py b/openstackclient/tests/functional/identity/v2/test_project.py
index b6222a1b..38777c36 100644
--- a/openstackclient/tests/functional/identity/v2/test_project.py
+++ b/openstackclient/tests/functional/identity/v2/test_project.py
@@ -72,7 +72,7 @@ class ProjectTests(common.IdentityTests):
self.assert_show_fields(items, fields)
project = self.parse_show_as_object(raw_output)
self.assertEqual(new_project_name, project['name'])
- self.assertEqual('False', project['enabled'])
+ self.assertFalse(project['enabled'])
self.assertEqual("k0='v0'", project['properties'])
def test_project_show(self):