'A volume maximum_size config value given as a string specifying a
quantity and a unit cannot have a quantity of zero.'

def test_invalid_volume_max_size_zero_string(self):

    config = dict(version=1, applications={u'mysql-hybridcluster': {u'image': u'clusterhq/mysql:v1.0.0', u'ports': [dict(internal=3306, external=3306)], u'volume': {u'mountpoint': '/var/lib/mysql', u'maximum_size': '0M'}}})
    parser = FlockerConfiguration(config)
    e = self.assertRaises(ConfigurationError, parser.applications)
    self.assertEqual(e.message, u"Application    'mysql-hybridcluster'    has    a    config    error.    Invalid    volume    specification.    maximum_size:    Must    be    greater    than    zero.")
