def get_mock_first_build(url, *args, **kwargs):
    mock_resp = MagicMock()
    if url in 'sinceBuild':
        # looking for new builds
        json = {"count":0,"href":"/guestAuth/app/rest/builds/?locator=buildType:TestProject_TestBuild,sinceBuild:id:1,status:SUCCESS"}
    else:
        json = {"count":1,"href":"/guestAuth/app/rest/builds/?locator=buildType:TestProject_TestBuild,count:1","nextHref":"/guestAuth/app/rest/builds/?locator=buildType:TestProject_TestBuild,count:1,start:1","build":[{"id":1,"buildTypeId":"TestProject_TestBuild","number":"1","status":"SUCCESS","state":"finished","href":"/guestAuth/app/rest/builds/id:1","webUrl":"http://localhost:8111/viewLog.html?buildId=1&buildTypeId=TestProject_TestBuild"}]}

    mock_resp.json.return_value = json
    return mock_resp
dataset/ETHPy150Open serverdensity/sd-agent/tests/checks/mock/test_teamcity.py/get_mock_first_build/swapped operands of `in`