def METHOD_NAME(self, user=None):
    if user is None:
        if not hasattr(self, 'user'):
            self.user = UserFactory.create(
                username='jon@dave.com',
                first_name='Jon',
                last_name='Mon',
                password='test123',
                email='jon@dave.com',
            )
        user = self.user
    api_key, created = Token.objects.get_or_create(user=user)
    self.client.credentials(
        HTTP_AUTHORIZATION='Token {}'.format(api_key)
    )
    return api_key