A note about code length, because some users may say "using self.client.get() is more straightforward"...
We can also write the lines above (297-301) like this:

```python
view = views.CustomTemplateView.as_instance(
    RequestFactory().get('/dummy'),
    foo='bar')
```

That said, the way they are written right now is fine too.