'tests that the endpoint returns 404 when hit with NON-get'

def test_lti_rest_non_get(self):

    DISALLOWED_METHODS = ('POST', 'PUT', 'DELETE', 'HEAD', 'OPTIONS')
    for method in DISALLOWED_METHODS:
        request = mock.Mock()
        request.method = method
        response = get_course_lti_endpoints(request, self.course.id.to_deprecated_string())
        self.assertEqual(405, response.status_code)
