'Ensure that the sensitive_variables decorator works with object
methods.
Refs #18379.'

def test_sensitive_method(self):

    with self.settings(DEBUG=True):
        self.verify_unsafe_response(sensitive_method_view, check_for_POST_params=False)
        self.verify_unsafe_email(sensitive_method_view, check_for_POST_params=False)
    with self.settings(DEBUG=False):
        self.verify_safe_response(sensitive_method_view, check_for_POST_params=False)
        self.verify_safe_email(sensitive_method_view, check_for_POST_params=False)
