Beispiel #1
0
    def test_two_nested_keys(self, set_nested_keys):
        querydict = QueryDict("somekey1.somekey2=somevalue")
        nest_querydict(querydict)

        set_nested_keys.assert_called_once_with({}, ["somekey1", "somekey2"], "somevalue")
Beispiel #2
0
 def test_one_key(self, set_nested_keys):
     querydict = QueryDict("somekey=somevalue")
     nest_querydict(querydict)
     set_nested_keys.assert_called_once_with({}, ["somekey"], "somevalue")