termie/keystonelight — pull request #24 by anotherjesse (2012-01-26 06:32:50+00:00)
Title: initial stab at requiring adminness

haven't hit everything but I'm having to catch:

client_exceptions.ClientException

instead of:

client_exceptions.Unauthorized

Since right now these seem to throw 500s

Also not sure what to do about the CLI version of these tests since it throws:

ERROR: test_admin_requires_adminness (test_cli.CliMasterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jesse/rcb/keystonelight/tests/test_keystoneclient.py", line 382, in test_admin_requires_adminness
self.assertRaises(exception, two.users.get, self.user_two['id'])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 456, in assertRaises
callableObj(*args, **kwargs)
TypeError: __call__() takes exactly 1 argument (2 given)