example for test of CBV DetailView using pytest-django