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