Aanpassingen reconnectcheck

- reconnectcheck naar sendrecv
 - idleconnect check
 - test voor idleconnect
This commit is contained in:
Marcel Nijenhof
2020-11-08 13:49:12 +01:00
parent 17301b70b3
commit 3001b434a6
2 changed files with 46 additions and 27 deletions

View File

@@ -103,6 +103,11 @@ class lmwsipTest(unittest.TestCase):
sleep(2)
self.assertEqual(self.sip.sendrecv("LOGOUTCOUNT"), "1\r")
def test_idlereconnect(self):
self.login(idlereconnect=1)
sleep(2)
self.assertEqual(self.sip.sendrecv("LOGOUTCOUNT"), "1\r")
def test_run(self):
capturedOutput = io.StringIO()
sys.stdout = capturedOutput