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
Create a Django user and token. For that we have to
dataset/ETHPy150Open m-vdb/github-buildservice-boilerplate/buildservice/utils/testing.py/create_user_token