'An ``ConfigurationError`` exception is raised if a fig-compatible
application configuration uses the \'build\' directive, which is not
yet supported by Flocker.'

def test_invalid_fig_config_uses_build(self):

    config = {u'postgres': {u'build': u'.', u'dns': u'8.8.8.8', u'expose': [u'5432'], u'entrypoint': u'/entry.sh'}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    error_message = u"Application    'postgres'    has    a    config    error.    'build'    is    not    supported    yet;    please    specify    'image'."
    self.assertEqual(exception.message, error_message)
