Skip to content

Commit

Permalink
Err .. make str test actually use __str__()!
Browse files Browse the repository at this point in the history
  • Loading branch information
da4089 committed Feb 16, 2018
1 parent 0ea15c2 commit 6fd00a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,9 @@ def test_str(self):
msg.append_pair(3, b"bar")
msg.append_pair(4, 3.1415679)

buffer = msg.encode(True)
buffer = str(msg)
self.assertIsNotNone(buffer)
self.assertEqual(b"1=1\x012=foo\x013=bar\x014=3.1415679\x01", buffer)
self.assertEqual("1=1|2=foo|3=bar|4=3.1415679", buffer)
return

def test_tag_bytes(self):
Expand Down

0 comments on commit 6fd00a8

Please sign in to comment.