'Request a page that is known to throw an error'

def test_view_with_exception(self):

    self.assertRaises(KeyError, self.client.get, u'/test_client/broken_view/')
    try:
        self.client.get(u'/test_client/broken_view/')
        self.fail(u'Should    raise    an    error')
    except KeyError:
        pass
