'``FlockerConfiguration.applications`` returns an ``Application`` with a
memory_limit set to the value specified in the configuration.'

def test_application_with_memory_limit(self):

    MEMORY_100MB = 100000000
    config = {u'applications': {u'mysql-hybridcluster': {u'image': u'clusterhq/mysql', u'mem_limit': MEMORY_100MB}}, u'version': 1}
    parser = FlockerConfiguration(config)
    applications = parser.applications()
    self.assertEqual(applications[u'mysql-hybridcluster'].memory_limit, MEMORY_100MB)
