|
|
|
@ -158,6 +158,9 @@ class Transmitter(TransmitterBase):
|
|
|
|
|
def setUp(self):
|
|
|
|
|
self.server = TestServer()
|
|
|
|
|
super(Transmitter, self).setUp()
|
|
|
|
|
# so far isStarted only tested but not used otherwise
|
|
|
|
|
# and here we don't really .start server
|
|
|
|
|
self.assertFalse(self.server.isStarted())
|
|
|
|
|
|
|
|
|
|
def testStopServer(self):
|
|
|
|
|
self.assertEqual(self.transm.proceed(["stop"]), (0, None))
|
|
|
|
@ -1004,6 +1007,7 @@ class LoggingTests(LogCaptureTestCase):
|
|
|
|
|
server = TestServer()
|
|
|
|
|
try:
|
|
|
|
|
server.start(sock_name, pidfile_name, force=False)
|
|
|
|
|
self.assertFalse(server.isStarted())
|
|
|
|
|
self.assertLogged("Server already running")
|
|
|
|
|
finally:
|
|
|
|
|
server.quit()
|
|
|
|
|