'L{FilePath.copyTo} fails with an OSError or IOError (depending on
platform, as it propagates errors from open() and write()) when
attempting to copy a directory to a child of itself.'

def test_copyToDirectoryItself(self):

    self.assertRaises((OSError, IOError), self.path.copyTo, self.path.child('file1'))
