Esempio n. 1
0
 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'))))
Esempio n. 2
0
 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('*'))))
Esempio n. 3
0
 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'))))
Esempio n. 4
0
 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('*'))))