def test_should_prepare_get_request_with_params(self): factory = RequestFactory() request = factory.get('/abc;type=json') self.assertEqual(request.method, 'GET')
def test_should_prepare_get_request(self): factory = RequestFactory() request = factory.get('/') self.assertEqual(request.method, 'GET')