Skip to content

Instantly share code, notes, and snippets.

@helenst
Created August 9, 2017 13:21
Show Gist options
  • Save helenst/6f8d3d0871980e1bf84bc29c6d53e3a6 to your computer and use it in GitHub Desktop.
Save helenst/6f8d3d0871980e1bf84bc29c6d53e3a6 to your computer and use it in GitHub Desktop.
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
Copy link

sevein commented Aug 9, 2017

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment