summaryrefslogtreecommitdiff
path: root/muck/authz_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'muck/authz_tests.py')
-rw-r--r--muck/authz_tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/muck/authz_tests.py b/muck/authz_tests.py
index fffb96b..37ada26 100644
--- a/muck/authz_tests.py
+++ b/muck/authz_tests.py
@@ -52,3 +52,10 @@ class AuthorizationCheckerTests(unittest.TestCase):
def test_allows_for_acceptable_request(self):
r = self.create_request(['foo'])
self.assertTrue(self.ac.request_is_allowed(r, 'GET', ['foo']))
+
+ def test_returns_claims_from_token(self):
+ r = self.create_request(['foo'])
+ expected = {
+ 'scope': 'foo',
+ }
+ self.assertTrue(self.ac.get_claims_from_token(r), expected)