'``Configuration.applications`` raises a
``ConfigurationError`` if the application_configuration uses invalid
Docker image names.'

def test_error_invalid_dockerimage_name(self):

    invalid_docker_image_name = u':baz'
    config = dict(version=1, applications={u'mysql-hybridcluster': dict(image=invalid_docker_image_name)})
    parser = FlockerConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    self.assertEqual(u"Application    'mysql-hybridcluster'    has    a    config    error.    Invalid    Docker    image    name.    Docker    image    names    must    have    format    'repository[:tag]'.    Found    ':baz'.", exception.message)
