<s> from django . core . urlresolvers import reverse <EOL> from orchestra . tests . helpers import OrchestraAuthenticatedTestCase <EOL> from orchestra . tests . helpers . fixtures import StaffingRequestFactory <EOL> from orchestra . tests . helpers . fixtures import StaffingResponseFactory <EOL> class StaffRequestTest ( OrchestraAuthenticatedTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( ) . setUp ( ) <EOL> self . request_client , self . user = self . authenticate_user ( ) <EOL> self . staffing_request = StaffingRequestFactory ( worker__user = self . user ) <EOL> self . staffing_response = StaffingResponseFactory ( ) <EOL> self . url_kwargs = { <EOL> '<STR_LIT>' : self . staffing_request . pk <EOL> } <EOL> class AcceptStaffRequestTest ( StaffRequestTest ) : <EOL> def setUp ( self ) : <EOL> super ( ) . setUp ( ) <EOL> self . url = reverse ( <EOL> '<STR_LIT>' , kwargs = self . url_kwargs ) <EOL> def test_get ( self ) : <EOL> response = self . request_client . get ( self . url ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT:200> ) <EOL> self . assertTemplateUsed ( <EOL> response , '<STR_LIT>' ) <EOL> class RejectStaffRequestTest ( StaffRequestTest ) : <EOL> def setUp ( self ) : <EOL> super ( ) . setUp ( ) <EOL> self . url = reverse ( <EOL> '<STR_LIT>' , kwargs = self . url_kwargs ) <EOL> def test_get ( self ) : <EOL> response = self . request_client . get ( self . url ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT:200> ) <EOL> self . assertTemplateUsed ( <EOL> response , '<STR_LIT>' ) </s>
