Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_list_lookup(self):
source = {0: '0'}
assert dot_lookup(source, [0]) == '0'
def test_invalit_lookup_type(self):
self.assertRaises(TypeError, dot_lookup, {0: '0'}, 0)