'Test we get a 404 when we don\'t GET or PUT'

def test_lti20_unsupported_method_error(self):

    self.setup_system_xmodule_mocks_for_lti20_request_test()
    mock_request = self.get_signed_lti20_mock_request(self.GOOD_JSON_PUT)
    for bad_method in self.UNSUPPORTED_HTTP_METHODS:
        mock_request.method = bad_method
        response = self.xmodule.lti_2_0_result_rest_handler(mock_request, 'user/abcd')
        self.assertEqual(response.status_code, 404)
