#NEWLINE# def test_single_user_data( self ) : #NEWLINE# #INDENT# " Retrieve a single user's data " #NEWLINE# u1 = make_user ( 'foo' , 'bar' , False ) #NEWLINE# u1 . admin = True #NEWLINE# g1 = Group ( 'foobars' ) #NEWLINE# u1 . groups . add ( g1 ) #NEWLINE# self . db . add_all ( [ self , g1 ] ) #NEWLINE# transaction . commit ( ) #NEWLINE# user = self . access . user_data ( 'foo' ) #NEWLINE# self . assertEqual ( user , { #NEWLINE# #INDENT# 'username' : 'foo' , #NEWLINE# 'admin' : True , #NEWLINE# 'groups' : [ 'foobars' ] , #NEWLINE# #UNINDENT# } )