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"]})
Esempio n. 2
0
    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"]})
Esempio n. 4
0
    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"]})