def test_dont_override_deep_values(self): state.deep_copy(self.destination, self.origin, override=False) self.assertEqual('bar', self.destination['car']['name'])
def test_override_property_inside_list(self): state.deep_copy(self.destination, self.origin, override=True) self.assertEqual('bob', self.destination['children'][0]['name'])
def test_copy_default(self): state.deep_copy(self.destination, self.origin, override=False) self.assertEqual('foobar', self.destination['surname'])
def test_override(self): state.deep_copy(self.destination, self.origin, override=True) self.assertEqual('foo', self.destination['name'])