def test_has_orig_true(self): open(os.path.join(self.tmpdir, 'source_1.2.orig.tar.gz'), "w").close() self.assertTrue(DebianPkgPolicy.has_orig(orig_file(self.cp, 'gzip'), self.tmpdir))
def test_has_orig_true(self): open(self.tmpdir.join('source_1.2.orig.tar.gz'), "w").close() self.assertTrue( DebianPkgPolicy.has_orig(orig_file(self.cp, 'gzip'), str(self.tmpdir)))
def test_has_orig_false(self): self.assertFalse(DebianPkgPolicy.has_orig(orig_file(self.cp, 'gzip'), self.tmpdir))
def test_has_orig_false(self): self.assertFalse( DebianPkgPolicy.has_orig(orig_file(self.cp, 'gzip'), str(self.tmpdir)))