示例#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))
示例#2
0
 def test_null_is_not_lzma_file(self):
     self.assertFalse(archive.is_lzma_file(os.devnull))
示例#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))