コード例 #1
0
 def test_deep_copy(self):
     d = ImmutableDict({'test': 'blah', 'something': '2'})
     d2 = deepcopy(d)
     d3 = d.copy()
     assert d == d2
     assert d == d3
コード例 #2
0
ファイル: test_datastructures.py プロジェクト: enigma/watson
 def test_deep_copy(self):
     d = ImmutableDict({'test': 'blah', 'something': '2'})
     d2 = deepcopy(d)
     d3 = d.copy()
     assert d == d2
     assert d == d3