def METHOD_NAME(api):
    priv, pub = api.push_subscription_generate_keys()
    sub = api.push_subscription_set("example.com", pub,follow_events=False,
                                    favourite_events=False, reblog_events=False, 
                                    mention_events=False)
    sub2 = api.push_subscription_update(follow_events=True, favourite_events=True, 
                                        reblog_events=True, mention_events=True)
    time.sleep(1)
    assert sub2 == api.push_subscription()
    sub3 = api.push_subscription_update(follow_events=False, favourite_events=False, 
                                        reblog_events=False, mention_events=False)
    time.sleep(1)
    assert sub3 == api.push_subscription()
    print(sub3)
    print(api.push_subscription())
    assert sub3.alerts.follow is False
    assert sub3.alerts.favourite is False
    assert sub3.alerts.reblog is False
    assert sub3.alerts.mention is False
    assert sub2.alerts.follow is True
    assert sub2.alerts.favourite is True
    assert sub2.alerts.reblog is True
    assert sub2.alerts.mention is True