def create_user_token(user, repo=None):
    token = OAuthToken.objects.create(user=user, value='the_token')
    if repo:
        Webhook.objects.create(repository=repo)
    return token
default: manage.py builtin commands fail if settings file (from environment) doesn't exist
dataset/ETHPy150Open m-vdb/github-buildservice-boilerplate/buildservice/utils/testing.py/create_user_token--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/admin_scripts/tests.py/ManageDefaultSettings.test_builtin_with_bad_environment