150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 | |
def test_copy_file(self): |
otherdir = self.root.join('otherdir') |
initpy = otherdir.join('__init__.py') |
copied = otherdir.join('copied') |
initpy.copy(copied) |
try: |
assert copied.check() |
s1 = initpy.read() |
s2 = copied.read() |
assert s1 == s2 |
finally: |
if copied.check(): |
-> copied.remove() | |