'Create a new ``AgentServiceFactory`` suitable for unit-testing.
:param deployer_factory: ``deployer_factory`` to use.
:return: ``AgentServiceFactory`` instance.'

def service_factory(self, deployer_factory):

    return AgentServiceFactory(deployer_factory=deployer_factory, get_external_ip=(lambda host, port: u'127.0.0.1'))
