'Command is OOM killed'

def test_command_oom_kill(self):

    self.mocks.configure_mock('docker_client', {'exec_create.return_value': {'Id': 'container-foobar'}, 'exec_start.return_value': 'Killed\n', 'exec_inspect.return_value': {'ExitCode': 137}})
    cmd = DockerBuildCommand(['echo', 'test'], cwd='/tmp/foobar')
    cmd.build_env = Mock()
    cmd.build_env.get_client.return_value = self.mocks.docker_client
    type(cmd.build_env).container_id = PropertyMock(return_value='foo')
    cmd.run()
    self.assertEqual(str(cmd.output), u'Command    killed    due    to    excessive    memory    consumption\n')
