'``Configuration.applications`` raises a
``ConfigurationError`` error if the specified volume mountpoint is
not a byte string.'

def test_error_on_volume_mountpoint_not_ascii(self):

    mountpoint_unicode = u'\u2603'
    config = dict(version=1, applications={u'mysql-hybridcluster': dict(image=u'busybox', volume={u'mountpoint': mountpoint_unicode})})
    parser = FlockerConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser.applications)
    self.assertEqual(u'Application    \'mysql-hybridcluster\'    has    a    config    error.    Invalid    volume    specification.    Mountpoint    "{mount}"    contains    non-ASCII    (unsupported).'.format(mount=mountpoint_unicode), exception.message)
