def METHOD_NAME(self):
    # Timeout is in minutes so to shorten the test we pass 0.1
    monitor = LogMonitor(timeout=0.1)
    try:
        with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
            s.connect((monitor.host, monitor.port))
            s.sendall("Just a test string\nwith two and a half\nlines in it".encode("utf8"))
            time.sleep(1)
            self.assertFalse(monitor.server.log_check())
            time.sleep(7)
            self.assertTrue(monitor.server.log_check())
            self.assertEqual(monitor.server.error_line, "")
    finally:
        monitor.shutdown()