def _get_mock_request(student):
 request = RequestFactory().get('/')
 request.user = student
 return request

def _get_mock_request ( student ) : request = RequestFactory ( ) . get ( '/' ) request . user = student return request
make a fake request because grading code expects to be able to look at the request .