#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# User = get_user_model ( ) #NEWLINE# user = User . objects . create ( username = 'test' , password = 'test' ) #NEWLINE# site = Site . objects . filter ( name = 'example.com' ) . get ( ) #NEWLINE# channel = Channel . objects . create ( name = 'Home' , slug = 'home' , description = 'home page' , site = site , user = user ) #NEWLINE# Container . objects . create ( title = 'test' , user = user , published = True , site = site , channel = channel ) #NEWLINE# Container . objects . create ( title = 'test 2' , user = user , site = site , channel = channel )