@defer.inlineCallbacks
    def test_startconnector_with_noretry_on_con_failure(self):

        yield self.connect('127.0.0.1', self.pbPort)

        localConfig = copy.copy(self.defaultConfig)
        localConfig.reconnectOnConnectionFailure = False
        yield self.add(localConfig)
        yield self.start(localConfig.id)

        # It takes a moment to stop the service after a connection failure
        while True:
            ssRet = yield self.service_status(localConfig.id)
            if ssRet != 1:
                break;
            else:
                time.sleep(1)

        self.assertEqual(0, ssRet)

        yield self.stop(localConfig.id)
When starting a connector that will fail connecting to a server
dataset/ETHPy150Open jookies/jasmin/jasmin/managers/test/test_managers.py/ClientConnectorTestCases.test_startconnector_with_noretry_on_con_failure