def test_is_lzma_file(self): xz_path = os.path.join(BASEDIR, 'selftests', '.data', 'avocado.xz') self.assertTrue(archive.is_lzma_file(xz_path))
def test_null_is_not_lzma_file(self): self.assertFalse(archive.is_lzma_file(os.devnull))
def test_is_lzma_file(self): xz_path = os.path.join(BASEDIR, "selftests", ".data", "avocado.xz") self.assertTrue(archive.is_lzma_file(xz_path))