diff options
Diffstat (limited to 'distixapi/authn_tests.py')
-rw-r--r-- | distixapi/authn_tests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/distixapi/authn_tests.py b/distixapi/authn_tests.py new file mode 100644 index 0000000..2a220ab --- /dev/null +++ b/distixapi/authn_tests.py @@ -0,0 +1,11 @@ +import unittest + +import distixapi + + +class GetCredentialsTests(unittest.TestCase): + + def test_raises_error_if_no_Authentication_header(self): + request = {} + with self.assertRaises(distixapi.AuthenticationError): + distixapi.get_credentials(request) |