def test_stream_encode(self): """ Check encoding an p_data produces the correct output """ pdu = P_DATA_TF() pdu.Decode(p_data_tf) s = pdu.Encode() self.assertEqual(s, p_data_tf)
def test_generic_encode(self): """ Check using the new pdu.encode produces the correct output """ pdu = P_DATA_TF() pdu.Decode(p_data_tf) s = pdu.Encode() t = pdu.encode() self.assertEqual(s, t)