def test_slave_shutdown(self): slave = self.createBuildslave(attached=True) yield slave.startService() yield slave.shutdown() self.assertEqual(slave.conn.remoteCalls, [('remoteSetBuilderList', []), ('remoteShutdown', )])
def test_slave_shutdown_not_connected(self): slave = self.createBuildslave(attached=False) yield slave.startService() # No exceptions should be raised here yield slave.shutdown()
def test_slave_shutdown(self): slave = self.createBuildslave(attached=True) yield slave.startService() yield slave.shutdown() self.assertEqual(slave.conn.remoteCalls, [('remoteShutdown',)])