@patch('paasta_tools.cli.cmds.status.read_deploy', autospec=True)
@patch('sys.stdout', new_callable=StringIO)
def test_get_deploy_info_does_not_exist(mock_stdout, mock_read_deploy):
    mock_read_deploy.return_value = False
    expected_output = PaastaCheckMessages.DEPLOY_YAML_MISSING % '%s\n'
    with raises(SystemExit) as sys_exit:
        status.get_deploy_info('fake_service')
    output = mock_stdout.getvalue()
    assert sys_exit.value.code == 1
    assert output == expected_output
dataset/ETHPy150Open Yelp/paasta/tests/cli/test_cmds_status.py/test_get_deploy_info_does_not_exist/swapped operands of `%`