Browse files

[project @ test_pape_draft5: test strict request auth age parsing fai…

…lure]
  • Loading branch information...
1 parent bc372f0 commit cae1a1d3274dd9e4517602229f5adf9ab83313a9 tailor committed Oct 13, 2008
Showing with 5 additions and 0 deletions.
  1. +5 −0 openid/test/test_pape_draft5.py
View
5 openid/test/test_pape_draft5.py
@@ -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)

0 comments on commit cae1a1d

Please sign in to comment.