def test_haskey(self): nd = NestedDict(self.data) for key in self.data.keys(): self.assertTrue(nd.has_key(key))