def test_copy_with_keys(self): frozen = FrozenOrderedDict(a=0, b=1) copied = frozen.copy(b=2, c=3) self.assertIs(type(copied), type(frozen)) self.assertMappingEqual(copied, dict(a=0, b=2, c=3))
def test_copy(self): frozen = FrozenOrderedDict(a=0, b=1) copied = frozen.copy() self.assertIs(type(copied), type(frozen)) self.assertMappingEqual(copied, frozen)