From 6fd00a853a4218246a9a89dbdcdd169ef02d1405 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Fri, 16 Feb 2018 17:58:18 +1100 Subject: [PATCH] Err .. make str test actually use __str__()! --- test/test_message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_message.py b/test/test_message.py index 24e06a5..dc4f4b6 100644 --- a/test/test_message.py +++ b/test/test_message.py @@ -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):