def test_glob_exclude_output(self): """Never include the output file in the globbing result. """ self.create_files(['out.js']) assert not list( filter(lambda s: 'out.js' in s, get_all_bundle_files(self.mkbundle('*', output='out.js'))))
def test_do_not_glob_directories(self): """[Regression] Glob should be smart enough not to pick up directories.""" self.create_directories('subdir') assert not list( filter(lambda s: 'subdir' in s, get_all_bundle_files(self.mkbundle('*'))))
def test_glob_exclude_output(self): """Never include the output file in the globbinb result. """ self.create_files(['out.js']) assert not list(filter(lambda s: 'out.js' in s, get_all_bundle_files(self.mkbundle('*', output='out.js'))))
def test_do_not_glob_directories(self): """[Regression] Glob should be smart enough not to pick up directories.""" self.create_directories('subdir') assert not list(filter(lambda s: 'subdir' in s, get_all_bundle_files(self.mkbundle('*'))))