Exception response in recv na close

This commit is contained in:
Marcel Nijenhof
2020-11-07 13:47:54 +01:00
parent ad1fed8340
commit 5968b6ff5b
2 changed files with 19 additions and 6 deletions

View File

@@ -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