Add some additional asserts.
@@ -236,6 +236,7 @@ class OpenStackIdentity_2_0_ConnectionTests(unittest.TestCase):
proxy_url='http://proxy:8080',
timeout=10)
self.auth_instance.auth_token = 'mock'
+ self.assertEqual(self.auth_instance.proxy_url, 'http://proxy:8080')
def test_list_projects(self):
result = self.auth_instance.list_projects()
@@ -259,6 +260,7 @@ class OpenStackIdentity_3_0_ConnectionTests(unittest.TestCase):
proxy_url='http://proxy:8080',
timeout=10)
self.auth_instance.auth_token = 'mock'
+ self.assertEqual(self.auth_instance.proxy_url, 'http://proxy:8080')
def test_token_scope_argument(self):
# Invalid token_scope value
@@ -314,6 +316,7 @@ class OpenStackIdentity_3_0_ConnectionTests(unittest.TestCase):
proxy_url='http://proxy:8080',
timeout=10)
auth.authenticate()
+ self.assertEqual(auth.proxy_url, 'http://proxy:8080')
def test_list_supported_versions(self):
OpenStackIdentity_3_0_MockHttp.type = 'v3'
@@ -852,5 +855,6 @@ class OpenStackIdentity_2_0_Connection_VOMSMockHttp(MockHttp):
return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK])
raise NotImplementedError()
+
if __name__ == '__main__':
sys.exit(unittest.main())
