summaryrefslogtreecommitdiff
path: root/novaclient/tests/functional/v2/test_servers.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/tests/functional/v2/test_servers.py')
-rw-r--r--novaclient/tests/functional/v2/test_servers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/novaclient/tests/functional/v2/test_servers.py b/novaclient/tests/functional/v2/test_servers.py
index a25dd2ae..3de668dd 100644
--- a/novaclient/tests/functional/v2/test_servers.py
+++ b/novaclient/tests/functional/v2/test_servers.py
@@ -288,7 +288,7 @@ class TestServersDetailsFlavorInfo(base.ClientTestBase):
flavor_details, key)
server_flavor_val = self._get_value_from_the_table(
server_details, flavor_key_mapping[key])
- if key is "swap" and flavor_val is "":
+ if key == "swap" and flavor_val == "":
# "flavor-show" displays zero swap as empty string.
flavor_val = '0'
self.assertEqual(flavor_val, server_flavor_val)