libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [7/7] libcloud git commit: Fix test failure - should not use is when comparing string values.
Date Sat, 01 Aug 2015 10:16:17 GMT
Fix test failure - should not use is when comparing string values.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/b3ca86bf
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/b3ca86bf
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/b3ca86bf

Branch: refs/heads/trunk
Commit: b3ca86bf89563c8f99d9abb2611da8324d1fbcad
Parents: 5c0440d
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Sat Aug 1 11:55:32 2015 +0200
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sat Aug 1 11:55:32 2015 +0200

----------------------------------------------------------------------
 libcloud/test/compute/test_onapp.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b3ca86bf/libcloud/test/compute/test_onapp.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_onapp.py b/libcloud/test/compute/test_onapp.py
index 324ae43..d62ec72 100644
--- a/libcloud/test/compute/test_onapp.py
+++ b/libcloud/test/compute/test_onapp.py
@@ -18,12 +18,12 @@ class OnAppNodeTestCase(LibcloudTestCase):
             response = MagicMock()
             method = kwargs.get('method', "GET")
 
-            if method is 'GET' and args[0] == '/virtual_machines.json':
+            if method == 'GET' and args[0] == '/virtual_machines.json':
                 response.object = json.loads(fixtures.load(
                     'list_nodes.json'))
-            if method is 'POST' and args[0] == '/virtual_machines.json':
+            if method == 'POST' and args[0] == '/virtual_machines.json':
                 response.object = json.loads(fixtures.load('create_node.json'))
-            if method is 'DELETE' and args[0] == '/virtual_machines.json':
+            if method == 'DELETE' and args[0] == '/virtual_machines.json':
                 response.status = 204
 
             return response


Mime
View raw message