Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Additional extract file test for Archivematica
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')
@sevein

This comment has been minimized.

Copy link

commented Aug 9, 2017

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.