fluent_contents/tests/utils.py
def assert404(self, url, msg_prefix=''):
        """
        Test that an URL does not exist.
        """
        if msg_prefix:
            msg_prefix += ": "
        response = self.client.get(url)
        self.assertEqual(response.status_code, 404, str(msg_prefix) + u"Page at {0} should return 404, got {1}.".format(url, response.status_code))

        Test that an URL does not exist.
        
Test that an URL does not exist.
Test that an URL does not exist .
def assert404(self, url, msg_prefix=''):
        if msg_prefix:
            msg_prefix += ": "
        response = self.client.get(url)
        self.assertEqual(response.status_code, 404, str(msg_prefix) + u"Page at {0} should return 404, got {1}.".format(url, response.status_code))
def assert404 ( self , url , msg_prefix = '' ) : if msg_prefix : msg_prefix += ": " response = self . client . get ( url ) self . assertEqual ( response . status_code , 404 , str ( msg_prefix ) + u"Page at {0} should return 404, got {1}." . format ( url , response . status_code ) )
Test that an URL does not exist.
Test that an URL does not exist .
"""
        Test that an URL does not exist.
        """
self
url
msg_prefix