'``FlockerConfiguration._parse`` raises a ``ConfigurationError``
if the supplied configuration contains a mem_limit entry that is not
an integer.'

def test_error_on_memory_limit_not_int(self):

    config = {u'applications': {u'mysql-hybridcluster': {u'image': u'clusterhq/mysql', u'mem_limit': 'abcdef'}}, u'version': 1}
    error_message = u"Application    'mysql-hybridcluster'    has    a    config    error.    mem_limit    must    be    an    integer;    got    type    'str'."
    parser = FlockerConfiguration(config)
    exception = self.assertRaises(ConfigurationError, parser._parse)
    self.assertEqual(exception.message, error_message)
