Пример #1
0
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'])
Пример #2
0
 def setUp(self):
     self.request = Request()