Beispiel #1
0
 def before_each(self):
     self.tmpdir.enter()
     touch('file0.py')
     mkdir('testdir1')
     touch('testdir1/file1.py')
     touch('testdir1/file2.py')
     mkdir('testdir2')
Beispiel #2
0
 def it_creates_empty_file(self):
     expect('testfile').not_exists()
     touch('testfile')
     expect('testfile').to_be_file()
Beispiel #3
0
 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