'``AgentServiceFactory.get_service`` raises an ``IOError`` if the given
configuration file does not exist.'

def test_missing_configuration_file(self):

    reactor = MemoryCoreReactor()
    options = DatasetAgentOptions()
    options.parseOptions(['--agent-config', self.make_temporary_path().path])
    service_factory = self.service_factory(deployer_factory=deployer_factory_stub)
    self.assertRaises(IOError, service_factory.get_service, reactor, options)
