summaryrefslogtreecommitdiff
path: root/keystoneclient/tests
diff options
context:
space:
mode:
authorMorgan Fainberg <morgan.fainberg@gmail.com>2017-08-07 13:13:31 -0700
committerMorgan Fainberg <morgan.fainberg@gmail.com>2017-08-07 13:14:55 -0700
commit4a43aa02b86e3203bb6614382ef598926a1464cb (patch)
treed4382b1c9460778afda33621af978c2c3bec3edf /keystoneclient/tests
parent5d0c29fc912caf18e78e6e153d3af4e554dfb0de (diff)
downloadpython-keystoneclient-4a43aa02b86e3203bb6614382ef598926a1464cb.tar.gz
Remove use of positional decorator
The positional decorator results in poorly maintainable code in a misguided effort to emulate python3's key-word-arg only notation and functionality. This patch removes keystoneclient's dependance on the positional decorator. Change-Id: I9e691cc8b0c04992f4a8dabd67e1b413d3220d23
Diffstat (limited to 'keystoneclient/tests')
-rw-r--r--keystoneclient/tests/unit/v3/test_tokens.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/keystoneclient/tests/unit/v3/test_tokens.py b/keystoneclient/tests/unit/v3/test_tokens.py
index 89b65f8..1a8fd68 100644
--- a/keystoneclient/tests/unit/v3/test_tokens.py
+++ b/keystoneclient/tests/unit/v3/test_tokens.py
@@ -64,11 +64,6 @@ class TokenTests(utils.ClientTestCase, testresources.ResourcedTestCase):
self.assertQueryStringIs('audit_id_only')
self.assertEqual(sample_revoked_response, resp)
- def test_get_revoked_audit_id_only_positional_exc(self):
- # When get_revoked(True) an exception is raised because this must be
- # called with named parameter.
- self.assertRaises(TypeError, self.client.tokens.get_revoked, True)
-
def test_validate_token_with_token_id(self):
# Can validate a token passing a string token ID.
token_id = uuid.uuid4().hex