@@ -9,14 +9,14 @@ def setUp(self):
99 self .encoder = WriteEncoder (TokenDictionary ())
1010
1111 def test_encode (self ):
12- node = ProtocolTreeNode ("message" , {"form " : "abc" , "to" :"xyz" }, [ProtocolTreeNode ("media" , {"width" : "123" }, data = b"123456" )])
12+ node = ProtocolTreeNode ("message" , {"from " : "abc" , "to" :"xyz" }, [ProtocolTreeNode ("media" , {"width" : "123" }, data = b"123456" )])
1313 result = self .encoder .protocolTreeNodeToBytes (node )
1414
1515 self .assertTrue (result in (
16- [0 , 248 , 6 , 95 , 179 , 252 , 3 , 120 , 121 , 122 , 252 , 4 , 102 , 111 , 114 , 109 , 252 , 3 , 97 , 98 , 99 , 248 , 1 , 248 , 4 , 93 ,
17- 236 , 104 , 255 , 130 , 18 , 63 , 252 , 6 , 49 , 50 , 51 , 52 , 53 , 54 ],
18- [0 , 248 , 6 , 95 , 252 , 4 , 102 , 111 , 114 , 109 , 252 , 3 , 97 , 98 , 99 , 179 , 252 , 3 , 120 , 121 , 122 , 248 , 1 , 248 , 4 , 93 ,
19- 236 , 104 , 255 , 130 , 18 , 63 , 252 , 6 , 49 , 50 , 51 , 52 , 53 , 54 ]
16+ [0 , 248 , 6 , 9 , 11 , 252 , 3 , 120 , 121 , 122 , 5 , 252 , 3 , 97 , 98 , 99 , 248 , 1 , 248 , 4 , 50 , 238 , 86 , 255 , 130 , 18 , 63 ,
17+ 252 , 6 , 49 , 50 , 51 , 52 , 53 , 54 ],
18+ [0 , 248 , 6 , 9 , 5 , 252 , 3 , 97 , 98 , 99 , 11 , 252 , 3 , 120 , 121 , 122 , 248 , 1 , 248 , 4 , 50 , 238 , 86 , 255 , 130 , 18 , 63 ,
19+ 252 , 6 , 49 , 50 , 51 , 52 , 53 , 54 ]
2020 )
2121 )
2222
0 commit comments