Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[HOT-FIX] correct get_md5 method;
  • Loading branch information
opalczynski committed Sep 27, 2016
commit cfca799768807e75f651b370d37018dce5c6883f
4 changes: 1 addition & 3 deletions tests/integration_test_data_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ def test_manager_create(self):

@classmethod
def get_file_md5(cls, file_object):
if isinstance(file_object, six.string_types):
file_content = file_object.encode('utf-8')
else:
if not isinstance(file_object, six.string_types):
file_content = file_object.read()
return md5(file_content).hexdigest()

Expand Down