I have a view as such:
def ProjectInfo(request): if request.method == \'POST\': form = ProjectInfoForm(request.POST) if form.is_valid():
According to the docs:
from django.test import TestCase class SimpleTest(TestCase): def test_details(self): # Issue a GET request. self.client.get('/customer/details/') session = self.client.session self.assertEqual(session["somekey"], "test")