'Tests that POST endpoints are rejected with 405 when using GET.'

@ddt.data(*INSTRUCTOR_POST_ENDPOINTS)
def test_endpoints_reject_get(self, data):

    url = reverse(data, kwargs={'course_id': unicode(self.course.id)})
    response = self.client.get(url)
    self.assertEqual(response.status_code, 405, 'Endpoint    {}    returned    status    code    {}    instead    of    a    405.    It    should    not    allow    GET.'.format(data, response.status_code))
