def METHOD_NAME(mocker, to_file=None, redirect_uris=None, website=None, user_agent="mastodonpy"):
    # there is no easy way to delete an anonymously created app so
    # instead we mock Requests
    resp = Mock()
    resp.json = Mock(return_value=dict(
            client_id='foo',
            client_secret='bar',
        ))
    mocker.patch('requests.post', return_value=resp)
    app = Mastodon.create_app("Mastodon.py test suite",
            api_base_url="example.com",
            to_file=to_file,
            redirect_uris=redirect_uris,
            website=website,
            user_agent=user_agent
            )
    assert app == ('foo', 'bar')
    assert requests.post.called