def test_memory_limit(self):
        EXPECTED_MEMORY_LIMIT = 100000000
        fake_docker = FakeDockerClient()
        deployer = ApplicationNodeDeployer(u'example.com', fake_docker)

        application_name = u'site-example.com'
        application = Application(
            name=application_name,
            image=DockerImage(repository=u'clusterhq/postgresql',
                              tag=u'9.3.5'),
            environment=None,
            links=frozenset(),
            memory_limit=EXPECTED_MEMORY_LIMIT
        )

        StartApplication(
            application=application,
            node_state=EMPTY_NODESTATE,
        ).run(deployer, state_persister=InMemoryStatePersister())

        self.assertEqual(
            EXPECTED_MEMORY_LIMIT,
            fake_docker._units[application_name].mem_limit
        )
``StartApplication.run()`` passes an ``Application``'s mem_limit to
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/test/test_container.py/StartApplicationTests.test_memory_limit