#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# base . TestCase . setUp ( self ) #NEWLINE# admin = { #NEWLINE# #INDENT# 'email' : 'admin@email.com' , #NEWLINE# 'login' : 'admin' , #NEWLINE# 'firstName' : 'Admin' , #NEWLINE# 'lastName' : 'Admin' , #NEWLINE# 'password' : 'adminpassword' , #NEWLINE# 'admin' : True , #NEWLINE# #UNINDENT# } #NEWLINE# self . admin = self . model ( 'user' ) . createUser ( ** admin ) #NEWLINE# user = { #NEWLINE# #INDENT# 'email' : 'good@email.com' , #NEWLINE# 'login' : 'goodlogin' , #NEWLINE# 'firstName' : 'First' , #NEWLINE# 'lastName' : 'Last' , #NEWLINE# 'password' : 'goodpassword' , #NEWLINE# 'admin' : False , #NEWLINE# #UNINDENT# } #NEWLINE# self . user = self . model ( 'user' ) . createUser ( ** user ) #NEWLINE# coll = { #NEWLINE# #INDENT# 'name' : 'Test Collection' , #NEWLINE# 'description' : 'The description' , #NEWLINE# 'public' : True , #NEWLINE# 'creator' : self . admin , #NEWLINE# #UNINDENT# } #NEWLINE# self . collection = self . model ( 'collection' ) . createCollection ( ** coll )