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