#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( AccountTestCase , self ) . setUp ( ) #NEWLINE# import uuid #NEWLINE# from pyshop.models import User , Group #NEWLINE# self . account_login = unicode ( uuid . uuid4 ( ) ) #NEWLINE# u = User ( login = self . account_login , password = 'secret' ) #NEWLINE# u . groups . append ( Group . by_name ( self . session , 'developer' ) ) #NEWLINE# self . session . add ( self ) #NEWLINE# self . session . flush ( ) #NEWLINE# self . account_id = u . id #NEWLINE# self . account_todelete = [ self . account_id ]