def METHOD_NAME(self, get_client):
    # this mocks the requests made to /types and /layout?type_id=xxx
    get_client.return_value.get.side_effect = [
        {
            "organization": {
                "type_id": 42
            }
        },
        [{
            "id": 42,
            "name": "incident",
            "content": [{
                "predefined_uuid": MockTab.UUID,
                "fields": [
                    Field("test").as_dto()
                ]
            }]
        }]
    ]
    create_tab(MockTab, {}, update_existing=True)
    get_client.return_value.put.assert_called_once()
    call_args = get_client.return_value.put.call_args
    payload = call_args.kwargs.get("payload")
    assert MockTab.exists_in(payload.get('content'))
    for field in MockTab.CONTAINS:
        assert field.exists_in(MockTab.get_from_tabs(
            payload.get('content')).get("fields"))
    assert MockTab.get_from_tabs(payload.get('content')).get('show_if') == MockTab.SHOW_IF