def METHOD_NAME(self, cli):
    user = factories.User()
    call_action(u"api_token_create", user=user[u"id"], name=u"first token")
    call_action(u"api_token_create", user=user[u"id"], name=u"second token")
    args = [
        u"user",
        u"token",
        u"list",
        user[u"name"],
    ]
    result = cli.invoke(ckan, args)
    assert result.exit_code == 0
    for (id,) in model.Session.query(model.ApiToken.id):
        assert id in result.output