Esempio n. 1
0
 def test_nested_keysearch_2(self):
     adict = {'a': {'b': 1}}
     self.assertTrue(common.nested_keysearch(adict, ['a', 'b']))
     self.assertFalse(common.nested_keysearch(adict, ['a', 'B']))
     self.assertFalse(common.nested_keysearch(adict, ['A', 'B']))
Esempio n. 2
0
 def test_nested_keysearch_2(self):
     adict = {'a': {'b': 1}}
     self.assertTrue(common.nested_keysearch(adict, ['a', 'b']))
     self.assertFalse(common.nested_keysearch(adict, ['a', 'B']))
     self.assertFalse(common.nested_keysearch(adict, ['A', 'B']))
Esempio n. 3
0
 def test_nested_keysearch_1(self):
     adict = {'a': 1}
     self.assertTrue(common.nested_keysearch(adict, ['a']))
     self.assertFalse(common.nested_keysearch(adict, ['A']))
Esempio n. 4
0
 def test_nested_keysearch_1(self):
     adict = {'a': 1}
     self.assertTrue(common.nested_keysearch(adict, ['a']))
     self.assertFalse(common.nested_keysearch(adict, ['A']))