def test_slash_at_start(self): """ Test that if the request has a slash to start, that it is removed as well. """ self.n = tracker.decode_request("/?key=value") self.assertEqual(self.n, {"key":["value"]})
def test_slash_at_start(self): """ Test that if the request has a slash to start, that it is removed as well. """ self.n = tracker.decode_request("/?key=value") self.assertEqual(self.n, {"key": ["value"]})
def test_simple_request(self): """ Test that a simple request is decoded correctly. """ self.n = tracker.decode_request("?key=value") self.assertEqual(self.n, {"key":["value"]})
def test_simple_request(self): """ Test that a simple request is decoded correctly. """ self.n = tracker.decode_request("?key=value") self.assertEqual(self.n, {"key": ["value"]})