#NEWLINE# def test_construct( self ) : #NEWLINE# #INDENT# self . assertEqual ( [ ] , bogus_levels . req . preferred_auth_policies ) #NEWLINE# self . assertEqual ( None , self . req . max_auth_age ) #NEWLINE# self . assertEqual ( 'pape' , self . req . ns_alias ) #NEWLINE# self . assertFalse ( self . req . preferred_auth_level_types ) #NEWLINE# bogus_levels = [ 'http://janrain.com/our_levels' ] #NEWLINE# req2 = pape . Request ( [ pape . AUTH_MULTI_FACTOR ] , 1000 , bogus_levels ) #NEWLINE# self . assertEqual ( [ pape . AUTH_MULTI_FACTOR ] , req2 . preferred_auth_policies ) #NEWLINE# self . assertEqual ( 1000 , req2 . max_auth_age ) #NEWLINE# self . assertEqual ( bogus_levels , req2 . preferred_auth_level_types )