Esempio n. 1
0
 def it_raise_error_if_trying_to_copy_directory(self):
     with expect.to_raise(IsADirectoryError):
         cp('testdir1', 'testdir3')
Esempio n. 2
0
 def it_copy_group_of_files_by_file_names_list(self):
     cp(['testdir1/file1.py', 'testdir1/file2.py'], 'testdir2')
     expect('testdir2/file1.py').to_be_file()
     expect('testdir2/file2.py').to_be_file()
Esempio n. 3
0
 def it_copy_single_file(self):
     cp('testdir1/file1.py', 'testdir2/file1b.py')
     expect('testdir1/file1.py').to_be_file()
     expect('testdir2/file1b.py').to_be_file()
Esempio n. 4
0
 def it_copy_group_of_files_by_glob_pattern(self):
     cp('testdir1/*.py', 'testdir2')
     expect('testdir2/file1.py').to_be_file()
     expect('testdir2/file2.py').to_be_file()
Esempio n. 5
0
 def it_copy_whole_directories(self):
     cp('testdir1', 'testdir3', r=True)
     expect('testdir3/file1.py').to_be_file()
     expect('testdir3/file2.py').to_be_file()