I hereby claim:
- I am deepakkabbur on github.
- I am deepakkabbur (https://keybase.io/deepakkabbur) on keybase.
- I have a public key ASBPigMi0KP9oh7ikvwWE-722YCxkiHheu0hzIzgFxy93go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from rest_framework.test import APIClient | |
from rest_framework.test import APITestCase | |
from accounts.models import User | |
class ApiUserTestClient(APITestCase): | |
""" | |
Helper base class for API test | |
""" | |
client = APIClient() |
import requests | |
class BaseRequest(object): | |
""" | |
Base class for Request Creation. | |
Session() | |
The Session object allows you to persist certain parameters across requests. | |
So if you’re making several requests to the same host, | |
the underlying TCP connection will be reused, which can result in a |