def test_dict_find_nested_list_key(self):
     d = {'key': ['value']}
     larger_dict = {
         'l': [{
             'hi': {},
         }, {
             'hi2': d
         }]
     }
     self.assertEquals(list(context_loader.dict_find(larger_dict, 'key')), [(d, ['value'])])
Esempio n. 2
0
 def test_dict_find_nested_list_key(self):
     d = {'key': ['value']}
     larger_dict = {
         'l': [{
             'hi': {},
         }, {
             'hi2': d
         }]
     }
     self.assertEquals(list(context_loader.dict_find(larger_dict, 'key')),
                       [(d, ['value'])])
Esempio n. 3
0
 def test_dict_find_list_key(self):
     d = {'key': ['value']}
     self.assertEquals(list(context_loader.dict_find(d, 'key')),
                       [(d, ['value'])])
Esempio n. 4
0
 def test_dict_find_none(self):
     self.assertEquals(list(context_loader.dict_find({}, 'key')), [])
 def test_dict_find_list_key(self):
     d = {'key': ['value']}
     self.assertEquals(list(context_loader.dict_find(d, 'key')), [(d, ['value'])])
 def test_dict_find_none(self):
     self.assertEquals(list(context_loader.dict_find({}, 'key')), [])