Integrate django.test.client.RequestFactory and replace mock Request class in unit.py.