Skip to content
Snippets Groups Projects
Verified Commit 53c64436 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

swh.deposit.tests: Fix potential listing error

parent 647a26ee
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,8 @@ class DepositReadArchivesTest(APITestCase, WithAuthTestCase, BasicTestCase,
tarball.uncompress(self.archive_path, self.workdir)
self.assertEquals(os.listdir(self.workdir), ['file1'])
tarball.uncompress(self.archive_path2, self.workdir)
self.assertEquals(os.listdir(self.workdir), ['file1', 'file2'])
lst = set(os.listdir(self.workdir))
self.assertEquals(lst, {'file1', 'file2'})
new_path = self.workdir + '.zip'
tarball.compress(new_path, 'zip', self.workdir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment