From 420ceff178bc2103890a4038bde4c3a2077ce020 Mon Sep 17 00:00:00 2001 From: Tobias Oberstein Date: Sat, 15 Apr 2017 14:41:51 +0200 Subject: [PATCH] fix unit test --- autobahn/asyncio/test/test_asyncio_rawsocket.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/autobahn/asyncio/test/test_asyncio_rawsocket.py b/autobahn/asyncio/test/test_asyncio_rawsocket.py index 84579844..afb34b85 100644 --- a/autobahn/asyncio/test/test_asyncio_rawsocket.py +++ b/autobahn/asyncio/test/test_asyncio_rawsocket.py @@ -95,16 +95,13 @@ class Test(TestCase): server.stringReceived = receiver server.connection_made(transport) - # XXX this test was disabled for a while, and had \xF1 instead - # of \x51 in the second octet previously; changing it - # presuming the 'real' code is correct - hs = b'\x7F\x51\x00\x00' + b'\x00\x00\x00\x04abcd' + hs = b'\x7F\xF1\x00\x00' + b'\x00\x00\x00\x04abcd' server.data_received(hs) ser.assert_called_once_with(1) on_hs.assert_called_once_with() self.assertTrue(transport.write.called) - transport.write.assert_called_once_with(b'\x7F\x51\x00\x00') + transport.write.assert_called_once_with(b'\x7F\xF1\x00\x00') self.assertFalse(transport.close.called) receiver.assert_called_once_with(b'abcd')