Exception response in recv na close
This commit is contained in:
@@ -75,6 +75,12 @@ class lmwsipTest(unittest.TestCase):
|
||||
self.assertEqual(self.sip._roundtime_(t1, "D10"), t1)
|
||||
self.assertEqual(self.sip._roundtime_(t2, "D10"), t1)
|
||||
|
||||
def test_closerecv(self):
|
||||
self.login()
|
||||
self.sip.send("CLOSE")
|
||||
with self.assertRaises(lmwsip.LmwSipConnectError):
|
||||
self.sip.recv()
|
||||
|
||||
def test_run(self):
|
||||
capturedOutput = io.StringIO()
|
||||
sys.stdout = capturedOutput
|
||||
|
Reference in New Issue
Block a user