def test_handle_BYE_without_session(self): """Handling of SipSession and RtpUdpStream handling on BYE message without an established session""" s = SipSession(('localhost', 1112), 123, 29999) s.handle_BYE([], "") """
def test_handle_empty_ACK(self): """Handling of SipSession and RtpUdpStream handling an empty ACK packet (empty apart from Call-ID)""" s = SipSession(('localhost', 1112), 123, 29999) s.handle_ACK([], "") # Close RTP stream so that the socket doesn't stay open after this test s._SipSession__rtpStream.close()