#NEWLINE# def test_retrieve_role_and_user_auths( self ) : #NEWLINE# #INDENT# ( login , role , user_auths ) = self . auth_gateway . retrieve_role_and_user_auths ( 'admin1' ) #NEWLINE# self . assertEquals ( 'admin1' , login ) #NEWLINE# self . assertEquals ( 'administrator' , role ) #NEWLINE# self . assertEquals ( 1 , len ( user_auths ) ) #NEWLINE# self . assertEquals ( 'aaaa{sha}a776159c8c7ff8b73e43aa54d081979e72511474' , user_auths [ 0 ] . hashed_password ) #NEWLINE# ( login , role , user_auths ) = self . auth_gateway . retrieve_role_and_user_auths ( 'student1' ) #NEWLINE# self . assertEquals ( 'student1' , login ) #NEWLINE# self . assertEquals ( 'student' , role ) #NEWLINE# self . assertEquals ( 1 , len ( self ) ) #NEWLINE# self . assertEquals ( 'aaaa{sha}a776159c8c7ff8b73e43aa54d081979e72511474' , user_auths [ 0 ] . hashed_password )