# Path: openid/extensions/pape.py
# AUTH_MULTI_FACTOR_PHYSICAL = \
#     'http://schemas.openid.net/pape/policies/2007/06/multi-factor-physical'
# AUTH_MULTI_FACTOR = \
#     'http://schemas.openid.net/pape/policies/2007/06/multi-factor'
# AUTH_PHISHING_RESISTANT = \
#     'http://schemas.openid.net/pape/policies/2007/06/phishing-resistant'
# AUTH_NONE = \
#     'http://schemas.openid.net/pape/policies/2007/06/none'
# TIME_VALIDATOR = re.compile(r'^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$')
# LEVELS_NIST = 'http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf'
# LEVELS_JISA = 'http://www.jisa.or.jp/spec/auth_level.html'
# class PAPEExtension(Extension):
# class Request(PAPEExtension):
# class Response(PAPEExtension):
#     def __init__(self):
#     def _addAuthLevelAlias(self, auth_level_uri, alias=None):
#     def _generateAlias(self):
#     def _getAlias(self, auth_level_uri):
#     def __init__(self, preferred_auth_policies=None, max_auth_age=None,
#                  preferred_auth_level_types=None):
#     def __bool__(self):
#     def __nonzero__(self):
#     def addPolicyURI(self, policy_uri):
#     def addAuthLevel(self, auth_level_uri, alias=None):
#     def getExtensionArgs(self):
#     def fromOpenIDRequest(cls, request):
#     def parseExtensionArgs(self, args, is_openid1, strict=False):
#     def preferredTypes(self, supported_types):
#     def __init__(self, auth_policies=None, auth_time=None,
#                  auth_levels=None):
#     def setAuthLevel(self, level_uri, level, alias=None):
#     def getAuthLevel(self, level_uri):
#     def nist_auth_level(self):
#     def addPolicyURI(self, policy_uri):
#     def fromSuccessResponse(cls, success_response):
#     def parseExtensionArgs(self, args, is_openid1, strict=False):
#     def getExtensionArgs(self):


import unittest
import warnings
from testfixtures import ShouldWarn
from openid.extensions import pape
            from openid.extensions.draft import pape5
from __future__ import unicode_literals





class PapeImportTestCase(unittest.TestCase):
    def test_version(self):
        warning_msg = "Module 'openid.extensions.draft.pape5' is deprecated in favor of 'openid.extensions.pape'."
        with ShouldWarn(DeprecationWarning(warning_msg)):
            warnings.simplefilter('always')
        self.assertEqual(pape.Request, pape5.Request)

# Path: openid/extensions/pape.py
# AUTH_MULTI_FACTOR_PHYSICAL = \
#     'http://schemas.openid.net/pape/policies/2007/06/multi-factor-physical'
# AUTH_MULTI_FACTOR = \
#     'http://schemas.openid.net/pape/policies/2007/06/multi-factor'
# AUTH_PHISHING_RESISTANT = \
#     'http://schemas.openid.net/pape/policies/2007/06/phishing-resistant'
# AUTH_NONE = \
#     'http://schemas.openid.net/pape/policies/2007/06/none'
# TIME_VALIDATOR = re.compile(r'^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$')
# LEVELS_NIST = 'http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf'
# LEVELS_JISA = 'http://www.jisa.or.jp/spec/auth_level.html'
# class PAPEExtension(Extension):
# class Request(PAPEExtension):
# class Response(PAPEExtension):
#     def __init__(self):
#     def _addAuthLevelAlias(self, auth_level_uri, alias=None):
#     def _generateAlias(self):
#     def _getAlias(self, auth_level_uri):
#     def __init__(self, preferred_auth_policies=None, max_auth_age=None,
#                  preferred_auth_level_types=None):
#     def __bool__(self):
#     def __nonzero__(self):
#     def addPolicyURI(self, policy_uri):
#     def addAuthLevel(self, auth_level_uri, alias=None):
#     def getExtensionArgs(self):
#     def fromOpenIDRequest(cls, request):
#     def parseExtensionArgs(self, args, is_openid1, strict=False):
#     def preferredTypes(self, supported_types):
#     def __init__(self, auth_policies=None, auth_time=None,
#                  auth_levels=None):
#     def setAuthLevel(self, level_uri, level, alias=None):
#     def getAuthLevel(self, level_uri):
#     def nist_auth_level(self):
#     def addPolicyURI(self, policy_uri):
#     def fromSuccessResponse(cls, success_response):
#     def parseExtensionArgs(self, args, is_openid1, strict=False):
#     def getExtensionArgs(self):


# Path: openid/test/test_pape_draft5.py
import unittest
import warnings
from testfixtures import ShouldWarn
from openid.extensions import pape
            from openid.extensions.draft import pape5

from __future__ import unicode_literals





class PapeImportTestCase(unittest.TestCase):
    def test_version(self):
        warning_msg = "Module 'openid.extensions.draft.pape5' is deprecated in favor of 'openid.extensions.pape'."
        with ShouldWarn(DeprecationWarning(warning_msg)):
            warnings.simplefilter('always')
        self.assertEqual(pape.Request, pape5.Request)

        self.assertEqual(pape.Response, pape5.Response)