'Validates the view bypasses the E-Commerce API when the course has no CourseModes with SKUs.'

def _test_course_without_sku(self, enrollment_mode=CourseMode.DEFAULT_MODE_SLUG):

    with mock_create_basket(expect_called=False):
        response = self._post_to_view()
    self.assertEqual(response.status_code, 200)
    msg = Messages.NO_SKU_ENROLLED.format(enrollment_mode=enrollment_mode, course_id=self.course.id, username=self.user.username)
    self.assertResponseMessage(response, msg)
