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

def verify_safe_email(self, view, check_for_POST_params=True):

    with self.settings(ADMINS=((u'Admin', u'admin@fattie-breakie.com'),)):
        mail.outbox = []
        request = self.rf.post(u'/some_url/', self.breakfast_data)
        response = view(request)
        self.assertEqual(len(mail.outbox), 1)
        email = mail.outbox[0]
        body_plain = force_text(email.body)
        self.assertNotIn(u'cooked_eggs', body_plain)
        self.assertNotIn(u'scrambled', body_plain)
        self.assertNotIn(u'sauce', body_plain)
        self.assertNotIn(u'worcestershire', body_plain)
        body_html = force_text(email.alternatives[0][0])
        self.assertIn(u'cooked_eggs', body_html)
        self.assertIn(u'scrambled', body_html)
        self.assertIn(u'sauce', body_html)
        self.assertNotIn(u'worcestershire', body_html)
        if check_for_POST_params:
            for (k, v) in self.breakfast_data.items():
                self.assertIn(k, body_plain)
            self.assertIn(u'baked-beans-value', body_plain)
            self.assertIn(u'hash-brown-value', body_plain)
            self.assertIn(u'baked-beans-value', body_html)
            self.assertIn(u'hash-brown-value', body_html)
            self.assertNotIn(u'sausage-value', body_plain)
            self.assertNotIn(u'bacon-value', body_plain)
            self.assertNotIn(u'sausage-value', body_html)
            self.assertNotIn(u'bacon-value', body_html)
