def test_copyToLocal_conflicting_names(self):
        os.mkdir(TESTFILES_PATH)
        target_dir = "%s/file2" % TESTFILES_PATH

        self.cluster.copyToLocal('/test3', target_dir)
        for result in self.client.copyToLocal(['/test3'], target_dir):
            self.assertEqual(result['error'], "file exists")
            self.assertEqual(result['path'], target_dir)
            self.assertEqual(result['result'], False)
dataset/ETHPy150Open spotify/snakebite/test/copytolocal_test.py/CopyToLocalTest.test_copyToLocal_conflicting_names/original