Beispiel #1
0
 def test_all_with_values(self):
     bag = InputBag()
     bag.load({"QUERY_STRING": "hello=you"})
     """
         {"filter": [{}]}
     """
     self.assertEqual(bag.all_as_values(), {"hello": "you"})
Beispiel #2
0
 def test_all_without_internal_values(self):
     bag = InputBag()
     bag.load({"QUERY_STRING": "hello=you&__token=tok"})
     """
         {"filter": [{}]}
     """
     self.assertEqual(bag.all_as_values(internal_variables=False),
                      {"hello": "you"})