Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
[project @ test_pape_draft5: test strict request auth age parsing fai…
Browse files Browse the repository at this point in the history
…lure]
  • Loading branch information
tailor committed Oct 13, 2008
1 parent bc372f0 commit cae1a1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openid/test/test_pape_draft5.py
Expand Up @@ -176,6 +176,11 @@ def test_parseExtensionArgs(self):
self.req.preferred_auth_policies)
self.failUnlessEqual([], self.req.preferred_auth_level_types)

def test_parseExtensionArgs_strict_bad_auth_age(self):
args = {'max_auth_age': 'not an int'}
self.assertRaises(ValueError, self.req.parseExtensionArgs, args,
is_openid1=False, strict=True)

def test_parseExtensionArgs_empty(self):
self.req.parseExtensionArgs({}, False)
self.failUnlessEqual(None, self.req.max_auth_age)
Expand Down

0 comments on commit cae1a1d

Please sign in to comment.