'Test that we get a 401 when header verification fails'

def test_lti20_request_handler_bad_headers(self):

    self.setup_system_xmodule_mocks_for_lti20_request_test()
    self.xmodule.verify_lti_2_0_result_rest_headers = Mock(side_effect=LTIError())
    mock_request = self.get_signed_lti20_mock_request(self.GOOD_JSON_PUT)
    response = self.xmodule.lti_2_0_result_rest_handler(mock_request, 'user/abcd')
    self.assertEqual(response.status_code, 401)
