diff options
author | Yann Leboulanger <yann@leboulanger.org> | 2017-11-15 00:17:29 +0300 |
---|---|---|
committer | Yann Leboulanger <yann@leboulanger.org> | 2017-11-15 00:17:29 +0300 |
commit | 6807867b231ed7e25fbdbac364dae517e67ef3af (patch) | |
tree | c2afce382b3dad0d570db99d1bbd86d807b2bf0f /test | |
parent | bda75fdfc0d0fd37370cd63afa13aa47935bdab1 (diff) |
fix tests
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/test_xmpp_transports_nb2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/test_xmpp_transports_nb2.py b/test/unit/test_xmpp_transports_nb2.py index ed09904..df154c3 100644 --- a/test/unit/test_xmpp_transports_nb2.py +++ b/test/unit/test_xmpp_transports_nb2.py @@ -231,9 +231,9 @@ class TestNonBlockingHTTP(AbstractTransportTest): transport = self._get_transport(self.bosh_http_dict) data = "<test>Please don't fail!</test>" - http_message = transport.build_http_message(data) - statusline, headers, http_body, buffer_rest = transport.parse_http_message( - http_message) + http_message = transport.build_http_message(data.encode('utf-8')) + statusline, headers, http_body, buffer_rest = \ + transport.parse_http_message(http_message.decode('utf-8')) self.assertFalse(bool(buffer_rest)) self.assertTrue(statusline and isinstance(statusline, list)) |