164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 | |
def test_copy_dir(self): |
otherdir = self.root.join('otherdir') |
copied = self.root.join('newdir') |
try: |
otherdir.copy(copied) |
assert copied.check(dir=1) |
assert copied.join('__init__.py').check(file=1) |
-> s1 = otherdir.join('__init__.py').read() |
s2 = copied.join('__init__.py').read() |
assert s1 == s2 |
finally: |
if copied.check(dir=1): |
copied.remove(rec=1) | |