'A ``ConfigurationError`` is raised if the "image" key
in a fig application config is a value not of
``types.StringTypes``.'

def test_invalid_fig_config_image_not_stringtypes(self):

    config = {u'postgres': {u'environment': {u'PG_ROOT_PASSWORD': u'clusterhq'}, u'image': [u'clusterhq', u'postgres'], u'ports': [u'54320:5432'], u'volumes': [u'/var/lib/postgres']}}
    parser = FigConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    error_message = u"Application    'postgres'    has    a    config    error.    'image'    must    be    a    string;    got    type    'list'."
    self.assertEqual(exception.message, error_message)
