Created
August 9, 2017 13:21
-
-
Save helenst/6f8d3d0871980e1bf84bc29c6d53e3a6 to your computer and use it in GitHub Desktop.
Additional extract file test for Archivematica
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_extract_file_aip_from_compressed_aip(self): | |
""" It should return an aip """ | |
package = models.Package.objects.get(uuid='88deec53-c7dc-4828-865c-7356386e9399') | |
basedir = package.get_base_directory() | |
output_path, extract_path = package.extract_file(extract_path=self.tmp_dir) | |
assert output_path == os.path.join(self.tmp_dir, basedir) | |
assert os.path.join(output_path, 'manifest-md5.txt') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!