Lines Matching defs:copy
8 import copy
378 # Test copy handling (etc).
380 import copy
382 e2 = copy.copy(e1)
383 e3 = copy.deepcopy(e1)
2308 # attrib is a copy
2318 # Only run this test if Element.copy() is defined.
2319 if "copy" not in dir(ET.Element):
2320 raise unittest.SkipTest("Element.copy() not present")
2326 element_foo2 = element_foo.copy()
2343 # attrib is a copy
2350 element_foo2 = copy.copy(element_foo)
2367 # attrib is a copy
2374 element_foo2 = copy.deepcopy(element_foo)
2391 # attrib is a copy
2426 self.assertRaises(TypeError, copy.deepcopy, e)
3137 copy.copy(it)
4251 nsmap_copy = nsmap.copy()
4254 ElementPath._cache = path_cache.copy()