Improved tests coverage.

This commit is contained in:
Fabio Caccamo 2020-01-31 13:12:34 +01:00
parent be647c27dc
commit db2481f678
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ class keypath_dict_test_case(unittest.TestCase):
},
}
b = KeypathDict(d)
self.assertEqual(b.get([]), None)
self.assertEqual(b.get(['a']), {'b': {'c': 1,'d': 2,},})
self.assertEqual(b.get(['a', 'b.c']), 1)
self.assertEqual(b.get(['a', 'b', 'c']), 1)