def test_course_id_mandatory(self): """ The request data must contain course_id """ resp = self.client.post(self.url, {}, format='json') assert resp.status_code == status.HTTP_400_BAD_REQUEST