Beispiel #1
0
 def test_has_orig_multiple_true(self):
     for ext in ['', '-foo', '-bar']:
         open(self.tmpdir.join('source_1.2.orig%s.tar.gz' % ext),
              "w").close()
     orig_files = [self.source.upstream_tarball_name('gzip')] + \
                  [self.source.upstream_tarball_name('gzip', sub) for sub in ['foo', 'bar']]
     self.assertTrue(DebianPkgPolicy.has_origs(orig_files,
                                               str(self.tmpdir)))
Beispiel #2
0
 def test_has_orig_multiple_false(self):
     orig_files = [self.source.upstream_tarball_name('gzip')] + \
                  [self.source.upstream_tarball_name('gzip', sub) for sub in ['foo', 'bar']]
     self.assertFalse(
         DebianPkgPolicy.has_origs(orig_files, str(self.tmpdir)))
Beispiel #3
0
 def test_has_orig_single_true(self):
     open(self.tmpdir.join('source_1.2.orig.tar.gz'), "w").close()
     self.assertTrue(
         DebianPkgPolicy.has_origs(
             [self.source.upstream_tarball_name('gzip')], str(self.tmpdir)))
Beispiel #4
0
 def test_has_orig_single_false(self):
     self.assertFalse(
         DebianPkgPolicy.has_origs(
             [self.source.upstream_tarball_name('gzip')], str(self.tmpdir)))
 def test_has_orig_multiple_true(self):
     for ext in ['', '-foo', '-bar']:
         open(self.tmpdir.join('source_1.2.orig%s.tar.gz' % ext), "w").close()
     orig_files = [orig_file(self.cp, 'gzip')] + \
                  [orig_file(self.cp, 'gzip', sub) for sub in ['foo', 'bar']]
     self.assertTrue(DebianPkgPolicy.has_origs(orig_files, str(self.tmpdir)))
 def test_has_orig_single_true(self):
     open(self.tmpdir.join('source_1.2.orig.tar.gz'), "w").close()
     self.assertTrue(DebianPkgPolicy.has_origs([orig_file(self.cp, 'gzip')], str(self.tmpdir)))
 def test_has_orig_multiple_false(self):
     orig_files = [orig_file(self.cp, 'gzip')] + \
                  [orig_file(self.cp, 'gzip', sub) for sub in ['foo', 'bar']]
     self.assertFalse(DebianPkgPolicy.has_origs(orig_files, str(self.tmpdir)))
Beispiel #8
0
 def test_has_orig_multiple_false(self):
     orig_files = [orig_file(self.cp, 'gzip')] + \
                  [orig_file(self.cp, 'gzip', sub) for sub in ['foo', 'bar']]
     self.assertFalse(DebianPkgPolicy.has_origs(orig_files, str(self.tmpdir)))
 def test_has_orig_single_false(self):
     self.assertFalse(DebianPkgPolicy.has_origs([orig_file(self.cp, 'gzip')], str(self.tmpdir)))
Beispiel #10
0
 def test_has_orig_single_true(self):
     open(self.tmpdir.join('source_1.2.orig.tar.gz'), "w").close()
     self.assertTrue(DebianPkgPolicy.has_origs([orig_file(self.cp, 'gzip')], str(self.tmpdir)))
Beispiel #11
0
 def test_has_orig_single_false(self):
     self.assertFalse(DebianPkgPolicy.has_origs([orig_file(self.cp, 'gzip')], str(self.tmpdir)))
 def test_has_orig_multiple_false(self):
     orig_files = [self.source.upstream_tarball_name('gzip')] + \
                  [self.source.upstream_tarball_name('gzip', sub) for sub in ['foo', 'bar']]
     self.assertFalse(DebianPkgPolicy.has_origs(orig_files, str(self.tmpdir)))
 def test_has_orig_single_true(self):
     open(self.tmpdir.join('source_1.2.orig.tar.gz'), "w").close()
     self.assertTrue(DebianPkgPolicy.has_origs([self.source.upstream_tarball_name('gzip')], str(self.tmpdir)))
 def test_has_orig_single_false(self):
     self.assertFalse(DebianPkgPolicy.has_origs([self.source.upstream_tarball_name('gzip')], str(self.tmpdir)))