'``DatasetServiceFactory.get_service`` validates the configuration file.'

def test_config_validated(self):

    config = self.make_temporary_file(content='INVALID')
    options = DatasetAgentOptions()
    options.parseOptions(['--agent-config', config.path])
    self.assertRaises(ValidationError, DatasetServiceFactory().get_service, MemoryCoreReactor(), options)
