'A ``ValidationError`` is raised if the config file does not
contain a hostname in the ``u"control-service"`` key.'

def test_error_on_missing_hostname(self):

    self.configuration['control-service'].pop('hostname')
    self.assertRaises(ValidationError, validate_configuration, self.configuration)
