def test_write_archive_7z(self):
    'Test writing an archive as a 7z archive.'
    FAILED_TO_WRITE_7Z = 'It is not possible to write a 7z file.'
    self.assertRaisesRegex(NotImplementedError, FAILED_TO_WRITE_7Z, tools.open_archive, '/dev/null.7z', mode='wb')
Test writing an archive as a 7z archive.
def test_write_archive_7z(self):
    
    FAILED_TO_WRITE_7Z = 'It is not possible to write a 7z file.'
    self.assertRaisesRegex(NotImplementedError, FAILED_TO_WRITE_7Z, tools.open_archive, '/dev/null.7z', mode='wb')