Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…lure]
  • Loading branch information...
commit cae1a1d3274dd9e4517602229f5adf9ab83313a9 1 parent bc372f0
tailor authored

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 openid/test/test_pape_draft5.py
5 openid/test/test_pape_draft5.py
@@ -176,6 +176,11 @@ def test_parseExtensionArgs(self):
176 176 self.req.preferred_auth_policies)
177 177 self.failUnlessEqual([], self.req.preferred_auth_level_types)
178 178
  179 + def test_parseExtensionArgs_strict_bad_auth_age(self):
  180 + args = {'max_auth_age': 'not an int'}
  181 + self.assertRaises(ValueError, self.req.parseExtensionArgs, args,
  182 + is_openid1=False, strict=True)
  183 +
179 184 def test_parseExtensionArgs_empty(self):
180 185 self.req.parseExtensionArgs({}, False)
181 186 self.failUnlessEqual(None, self.req.max_auth_age)

0 comments on commit cae1a1d

Please sign in to comment.
Something went wrong with that request. Please try again.