From 609fd218c38995903c58a03d6136cef3c6cbe02b Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Thu, 28 Jul 2011 10:49:18 -0700 Subject: [PATCH] Removing some legacy code from the unit tests --- tests/unit/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/api.py b/tests/unit/api.py index 13962322c..663870bfa 100644 --- a/tests/unit/api.py +++ b/tests/unit/api.py @@ -90,9 +90,9 @@ class APITest(unittest.TestCase): """ Setups a test environment for the API client """ HOST = '127.0.0.1' PORT = 9696 - USE_SSL = True + USE_SSL = False - self.client = Client(HOST,PORT,USE_SSL,TENANT_1,'json',ServerStub, key_file="/ssl.cert", cert_file="/ssl.cert") + self.client = Client(HOST,PORT,USE_SSL,TENANT_1,'json',ServerStub) def _assert_sanity(self, call, status, method, path, data=[], params={}): """ Perform common assertions to test the sanity of client requests """ @@ -103,7 +103,7 @@ class APITest(unittest.TestCase): self.assertRaises(Exception, call, *data, **params) return - # Make the call, then get the data from the root node and strip its data + # Make the call, then get the data from the root node and assert it data = call(*data, **params)['data'] self.assertEqual(data['method'], method) -- 2.45.2