コード例 #1
0
ファイル: spec_files.py プロジェクト: ecordell/flowp
 def it_raise_error_if_trying_to_copy_directory(self):
     with expect.to_raise(IsADirectoryError):
         cp('testdir1', 'testdir3')
コード例 #2
0
ファイル: spec_files.py プロジェクト: ecordell/flowp
 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()
コード例 #3
0
ファイル: spec_files.py プロジェクト: ecordell/flowp
 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()
コード例 #4
0
ファイル: spec_files.py プロジェクト: ecordell/flowp
 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()
コード例 #5
0
ファイル: spec_files.py プロジェクト: ecordell/flowp
 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()