HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall_forms/buyercall/buyercall/tests/page/test_views.py
from buyercall.tests.lib.util import ViewTestMixin
from buyercall.tests.lib.assertions import assert_status_with_message


class TestErrorPages(ViewTestMixin):
    def test_404_page(self):
        """ 404 errors should show custom 404 page. """
        response = self.client.get('/impossiblepathtoneverexistinthisapp')

        assert_status_with_message(404, response, 'Error 404')