Skip to content

Commit

Permalink
Make tests work on 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
samirelanduk committed Sep 17, 2018
1 parent 27a9b0b commit 3276faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_mmtf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ def test_can_handle_dictionary_with_byte_lists(self):

@patch("atomium.mmtf.parse_binary_field")
def test_can_handle_dictionary_with_binary_fields(self, mock_parse):
mock_parse.side_effect = [1, 2]
mock_parse.side_effect = [1, 1]
d = decode_dict({
b"key": b"\x00\x08", b"key2": [b"a", b"b"], b"key3": "\x00123"
})
mock_parse.assert_any_call(b"\x00\x08")
mock_parse.assert_any_call(b"\x00123")
self.assertEqual(d, {
"key": 1, "key2": ["a", "b"], "key3": 2
"key": 1, "key2": ["a", "b"], "key3": 1
})


Expand Down

0 comments on commit 3276faa

Please sign in to comment.