def testNotExistedTopLevel(self): self.assertFalse(zen.has_deep_key(test_obj, 'key2'))
def testExistedByString(self): self.assertTrue(zen.has_deep_key(test_obj, 'key1.key2.key3'))
def testNotExistedByKey(self): self.assertFalse(zen.has_deep_key(test_obj, ('key3', 'key1')))
def testExistedByList(self): self.assertTrue(zen.has_deep_key(test_obj, ['key1', 'key2', 'key3'])) self.assertFalse(zen.has_deep_key(test_obj, ['key1', 'key2', 'key4']))