'Asserts that certain sensitive info are not displayed in the response.'

def verify_safe_response(self, view, check_for_vars=True, check_for_POST_params=True):

    request = self.rf.post(u'/some_url/', self.breakfast_data)
    response = view(request)
    if check_for_vars:
        self.assertContains(response, u'cooked_eggs', status_code=500)
        self.assertContains(response, u'scrambled', status_code=500)
        self.assertContains(response, u'sauce', status_code=500)
        self.assertNotContains(response, u'worcestershire', status_code=500)
    if check_for_POST_params:
        for (k, v) in self.breakfast_data.items():
            self.assertContains(response, k, status_code=500)
        self.assertContains(response, u'baked-beans-value', status_code=500)
        self.assertContains(response, u'hash-brown-value', status_code=500)
        self.assertNotContains(response, u'sausage-value', status_code=500)
        self.assertNotContains(response, u'bacon-value', status_code=500)
