One last nit: this way works, but I generally prefer using RequestFactory in tests to the django test client.