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"]})
示例#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"]})
示例#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"]})