def test__get_request(self): wsgi_r = WsgiHttpRequest() expected_items = MergeDict({}, {}).items() wsgi_r.GET = {} wsgi_r.POST = {} self.assertListEqual(sorted(expected_items), sorted(wsgi_r._get_request().items()))
def test__get_request(self): from django.utils.datastructures import MergeDict wsgi_r = WsgiHttpRequest() expected_items = MergeDict({}, {}).items() wsgi_r.GET = {} wsgi_r.POST = {} self.assertListEqual(sorted(expected_items), sorted(wsgi_r._get_request().items()))