#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# USER_ROLES . remove ( 'anonymous' ) #NEWLINE# USER_ROLES . extend ( self . EXTRA_USER_ROLES ) #NEWLINE# super ( ProjectAccessControlTestCase , self ) . setUp ( ) #NEWLINE# for u in self . EXTRA_USER_ROLES : #NEWLINE# #INDENT# USER_ROLES . remove ( u ) #NEWLINE# #UNINDENT# self . project_outsource = Project . objects . get_or_create ( slug = 'project1_outsource' , name = 'Test Outsource Project' , source_language = self . language_en ) [ 0 ] #NEWLINE# self . project_outsource . maintainers . add ( self . user [ 'outsource_maintainer' ] ) #NEWLINE# self . perm_outsource = AuPermission ( codename = 'project_perm.submit_translations' , approved = True , user = self . user [ 'outsource_writer' ] , content_object = self . project_outsource , creator = self . user [ 'maintainer' ] ) #NEWLINE# self . perm_outsource . save ( ) #NEWLINE# self . team_outsource = Team . objects . get_or_create ( language = self . language , project = self . project_outsource , creator = self . user [ 'maintainer' ] ) [ 0 ] #NEWLINE# self . team_outsource . coordinators . add ( self . user [ 'team_coordinator' ] ) #NEWLINE# self . team_outsource . members . add ( self . user [ 'outsource_team_member' ] )