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