@patch('sys.stdout', new_callable=StringIO)
@patch('paasta_tools.cli.cmds.check.get_pipeline_config')
@patch('paasta_tools.cli.cmds.check.get_marathon_steps')
def test_marathon_deployments_deploy_but_not_marathon(
    mock_get_marathon_steps,
    mock_get_pipeline_config,
    mock_stdout,
):
    mock_get_pipeline_config.return_value = [
        {'instancename': 'itest', },
        {'instancename': 'performance-check', },
        {'instancename': 'push-to-registry', },
        {'instancename': 'hab.canary', 'trigger_next_step_manually': True, },
        {'instancename': 'hab.main', },
        {'instancename': 'hab.EXTRA', },
    ]
    mock_get_marathon_steps.return_value = [
        'hab.canary',
        'hab.main',
    ]
    actual = deployments_check(service='fake_service', soa_dir='/fake/service')
    assert actual is False
    assert mock_stdout.getvalue() in 'EXTRA'
dataset/ETHPy150Open Yelp/paasta/tests/cli/test_cmds_check.py/test_marathon_deployments_deploy_but_not_marathon/swapped operands of `in`