#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . cm = CustomerMiddleware ( ) #NEWLINE# self . factory = RequestFactory ( ) #NEWLINE# User = get_user_model ( ) #NEWLINE# self . lisa = User . objects . create ( ** self . credentials [ 'lisa' ] ) #NEWLINE# self . bart = User . objects . create ( ** self . credentials [ 'bart' ] ) #NEWLINE# Customer . objects . create ( user = User . bart )