def test_compressed(self): """Test compressed properties""" mbox = MBoxArchive(self.cfiles['bz2']) self.assertEqual(mbox.compressed_type, 'bz2') self.assertEqual(mbox.is_compressed(), True) mbox = MBoxArchive(self.cfiles['gz']) self.assertEqual(mbox.compressed_type, 'gz') self.assertEqual(mbox.is_compressed(), True)
def test_compressed(self): """Test compressed properties""" mbox = MBoxArchive(self.cfiles["bz2"]) self.assertEqual(mbox.compressed_type, "bz2") self.assertEqual(mbox.is_compressed(), True) mbox = MBoxArchive(self.cfiles["gz"]) self.assertEqual(mbox.compressed_type, "gz") self.assertEqual(mbox.is_compressed(), True)
def test_not_compressed(self): """Check the properties of a non-compressed archive""" mbox = MBoxArchive(self.files['single']) self.assertEqual(mbox.compressed_type, None) self.assertEqual(mbox.is_compressed(), False)