def test_assert_code(self):
        response = self.client.get('/')
        self.assert_code(response, 200)
Use the HTTP client to make a request and then check the HTTP status code in the response
dataset/ETHPy150Open garethr/django-test-extensions/src/test_extensions/examples/examples.py/Examples.test_assert_code