diff options
Diffstat (limited to 'tests/test_testing.py')
| -rw-r--r-- | tests/test_testing.py | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py index 8c6086a2..bd3e1329 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -152,3 +152,13 @@ class TestAPIRequestFactory(TestCase):          simple_png.name = 'test.png'          factory = APIRequestFactory()          factory.post('/', data={'image': simple_png}) + +    def test_request_factory_url_arguments(self): +        """ +        This is a non regression test against #1461 +        """ +        factory = APIRequestFactory() +        request = factory.get('/view/?demo=test') +        self.assertEqual(dict(request.GET), {'demo': ['test']}) +        request = factory.get('/view/', {'demo': 'test'}) +        self.assertEqual(dict(request.GET), {'demo': ['test']})  | 
