#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# testuser = User . objects . create ( username = 'TestUser' , password = '1234' ) #NEWLINE# testdeck = Deck . objects . create ( ID = 1 , title = 'Test-Deck' , description = 'test' ) #NEWLINE# seconddeck = Deck . objects . create ( ID = 2 , title = 'Second-Deck' , description = 'test' ) #NEWLINE# Card . objects . create ( deck = testdeck , front = '#Test' , back = '#Test' ) #NEWLINE# Card . objects . create ( deck = testdeck , front = '#Test' , back = '#Test' ) #NEWLINE# Card . objects . create ( deck = seconddeck , front = '#Test' , back = '#Test' ) #NEWLINE# assign_perm ( 'view_deck' , seconddeck , testdeck )