You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2015/08/01 12:16:17 UTC

[7/7] libcloud git commit: Fix test failure - should not use is when comparing string values.

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 <to...@apache.org>
Authored: Sat Aug 1 11:55:32 2015 +0200
Committer: Tomaz Muraus <to...@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