class RequestTest(TestBase): def setUp(self): self.request = Request() def test_querystring_to_dict(self): r = self.request._parse_querystring("a=a&b=b") self.assertEqual(2, len(r)) self.assertEqual('a', r['a']) self.assertEqual('b', r['b'])
def setUp(self): self.request = Request()