Exemple #1
0
    def test_a_p_abort_stream_encode(self):
        """ Check encoding an a_abort produces the correct output """
        pdu = A_ABORT_RQ()
        pdu.Decode(a_p_abort)
        s = pdu.Encode()

        self.assertEqual(s, a_p_abort)
Exemple #2
0
    def test_generic_encode(self):
        """ Check using the new pdu.encode produces the correct output """
        pdu = A_ABORT_RQ()
        pdu.Decode(a_abort)
        s = pdu.Encode()
        t = pdu.encode()

        self.assertEqual(s, t)