Skip to content

Commit

Permalink
removed un needed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew J. Sonne committed Jun 25, 2017
1 parent f084f8e commit 73ce321
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/unittest/python/directoryzipfile_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,5 @@ def test_directoryzip_integration(self, os_walk):
zipdirectory.close()


calls = map(lambda file: call(os.path.join(self.test_dir, file), file), self.zip_structure)
mock_write.assert_has_calls(calls)

@patch('os.walk')
def test_zipdir(self, os_walk):
os_walk.return_value = ((self.test_dir, (), self.zip_structure),)
mock_write = MagicMock()

zip = DirectoryZipFile(self.test_dir)
zip.write = mock_write
zip.zipdir(self.test_dir, self.test_dir)
zip.close()

calls = map(lambda file: call(os.path.join(self.test_dir, file), file), self.zip_structure)
mock_write.assert_has_calls(calls)

0 comments on commit 73ce321

Please sign in to comment.