def test_keys(self): nd = NestedDict(self.data) keys = nd.keys() for key in keys: self.assertIn(key, self.data)