コード例 #1
0
ファイル: spec_files.py プロジェクト: ecordell/flowp
 def before_each(self):
     self.tmpdir.enter()
     touch('file0.py')
     mkdir('testdir1')
     touch('testdir1/file1.py')
     touch('testdir1/file2.py')
     mkdir('testdir2')
コード例 #2
0
ファイル: spec_files.py プロジェクト: ecordell/flowp
 def it_creates_empty_file(self):
     expect('testfile').not_exists()
     touch('testfile')
     expect('testfile').to_be_file()
コード例 #3
0
ファイル: spec_files.py プロジェクト: ecordell/flowp
 def it_monitor_new_files(self):
     touch('testdir1/file3.py')
     self.wp.stop_when(lambda: self.event, 1)
     expect(self.filename) == 'testdir1/file3.py'
     expect(self.event) == Watch.NEW