diff options
| author | Yogeshwar Srikrishnan <yoga80@yahoo.com> | 2011-06-09 00:16:58 -0500 |
|---|---|---|
| committer | Yogeshwar Srikrishnan <yoga80@yahoo.com> | 2011-06-09 00:16:58 -0500 |
| commit | 38c2f72090e71e2376996fb3f5cf8b30aa59508f (patch) | |
| tree | 0d0811dafbdf2c97b309c5508fc84f12bcd9fd09 /test | |
| parent | ce24b59f91370e1eae2729bacd13a99a3fd343d7 (diff) | |
| download | keystone-38c2f72090e71e2376996fb3f5cf8b30aa59508f.tar.gz keystone-38c2f72090e71e2376996fb3f5cf8b30aa59508f.tar.xz keystone-38c2f72090e71e2376996fb3f5cf8b30aa59508f.zip | |
PEP8 changes.
Diffstat (limited to 'test')
| -rwxr-xr-x | test/unit/test_authentication.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test/unit/test_authentication.py b/test/unit/test_authentication.py index a1751c5e..74089023 100755 --- a/test/unit/test_authentication.py +++ b/test/unit/test_authentication.py @@ -38,11 +38,11 @@ class AuthenticationTest(unittest.TestCase): #self.user = utils.get_user() self.userdisabled = utils.get_userdisabled() self.auth_token = utils.get_auth_token() - utils.create_baseurls_ref(self.tenant,"1", + utils.create_baseurls_ref(self.tenant, "1", str(self.auth_token)) - utils.create_baseurls_ref(self.tenant,"2", - str(self.auth_token)) - utils.create_baseurls_ref(self.tenant,"3", + utils.create_baseurls_ref(self.tenant, "2", + str(self.auth_token)) + utils.create_baseurls_ref(self.tenant, "3", str(self.auth_token)) #self.exp_auth_token = utils.get_exp_auth_token() #self.disabled_token = utils.get_disabled_token() @@ -68,7 +68,6 @@ class AuthenticationTest(unittest.TestCase): self.tenant) self.assertEqual(200, int(resp['status'])) self.assertEqual('application/xml', utils.content_type(resp)) - #verify content dom = etree.Element("root") dom.append(etree.fromstring(content)) @@ -76,12 +75,12 @@ class AuthenticationTest(unittest.TestCase): "auth") if auth == None: self.fail("Expecting Auth") - service_catalog = auth.find("{http://docs.openstack.org/identity/api/v2.0}" \ - "serviceCatalog") + service_catalog = auth.find( + "{http://docs.openstack.org/identity/api/v2.0}" \ + "serviceCatalog") if service_catalog == None: self.fail("Expecting Service Catalog") - def test_a_authorize_legacy(self): resp, content = utils.get_token_legacy('joeuser', 'secrete') self.assertEqual(204, int(resp['status'])) |
