def test_popitem(self): d = DotDict({"subdict": {"x": 0}}) k, v = d.popitem() assert k == "subdict" assert v.x == 0 assert len(d) == 0
def test_popitem(self): d = DotDict({"subdict": {"x": 0}}) k, v = d.popitem() self.assertEqual(k, "subdict") self.assertEqual(v.x, 0) self.assertEqual(len(d), 0)