示例#1
0
 def test_multiple_dirs(self):
     dist.extra_dist(self.builtin_dict, dirs=['dir1', 'dir2'])
     self.assertEqual(list(self.build.sources()), [
         File(Path('build.bfg', Root.srcdir)),
         Directory(Path('dir1', Root.srcdir)),
         Directory(Path('dir2', Root.srcdir)),
     ])
示例#2
0
 def test_both(self):
     dist.extra_dist(self.builtin_dict, 'file', 'dir')
     self.assertEqual(list(self.build.sources()), [
         File(Path('build.bfg', Root.srcdir)),
         File(Path('file', Root.srcdir)),
         Directory(Path('dir', Root.srcdir)),
     ])
示例#3
0
 def test_multiple_files(self):
     dist.extra_dist(self.builtin_dict, files=['file1', 'file2'])
     self.assertEqual(list(self.build.sources()), [
         File(Path('build.bfg', Root.srcdir)),
         File(Path('file1', Root.srcdir)),
         File(Path('file2', Root.srcdir)),
     ])
示例#4
0
 def test_file(self):
     dist.extra_dist(self.builtin_dict, files='file')
     self.assertEqual(list(self.build.sources()), [
         File(Path('build.bfg', Root.srcdir)),
         File(Path('file', Root.srcdir)),
     ])