'Create dop access token for given user if user provided else for default user.'

def _create_dot_tokens(self, user=None):

    if (not user):
        user = User.objects.get(email=self.OLD_EMAIL)
    application = dot_factories.ApplicationFactory(user=user)
    access_token = dot_factories.AccessTokenFactory(user=user, application=application)
    dot_factories.RefreshTokenFactory(user=user, application=application, access_token=access_token)
