def test_write_archive_bz2(self):
    'Test writing a bz2 archive.'
    content = self._write_content('.bz2')
    with open((self.base_file + '.bz2'), 'rb') as f:
        self.assertEqual(content, f.read())
Test writing a bz2 archive.
def test_write_archive_bz2(self):
    
    content = self._write_content('.bz2')
    with open((self.base_file + '.bz2'), 'rb') as f:
        self.assertEqual(content, f.read())