예제 #1
0
def i_have_five_files_when_supllying_a_global_matcher():
    found_files = FileSystem.locate(folder_for_tests, '*')
    assert_equals(len(found_files), 5, 'exactly 5 files should"ve been found')
예제 #2
0
def i_have_five_file_when_no_matcher_is_provided():
    found_files = FileSystem.locate(folder_for_tests)
    assert_equals(len(found_files), 5, 'exactly 5 files should"ve been found')
예제 #3
0
def i_have_four_files_on_my_test_folder():
    found_files = FileSystem.locate(folder_for_tests, '*.html')
    assert_equals(len(found_files), 4, 'exactly 4 files should"ve been found')
 def iter_templates(self, filter):
     for path in self.list_all_paths():
         for template in FileSystem.locate(path):
             if filter(template):
                 yield {"path": path, "template": template}
def i_have_five_files_when_supllying_a_global_matcher():
    found_files = FileSystem.locate(folder_for_tests, '*')
    assert_equals(len(found_files), 5, 'exactly 5 files should"ve been found')
def i_have_four_files_on_my_test_folder():
    found_files = FileSystem.locate(folder_for_tests, '*.html')
    assert_equals(len(found_files), 4, 'exactly 4 files should"ve been found')
def i_have_five_file_when_no_matcher_is_provided():
    found_files = FileSystem.locate(folder_for_tests)
    assert_equals(len(found_files), 5, 'exactly 5 files should"ve been found')
예제 #8
0
 def iter_templates(self, filter):
     for path in self.list_all_paths():
         for template in FileSystem.locate(path):
             if filter(template):
                 yield {'path': path, 'template': template}