'Verify that the utility can operate when the ecommerce service is disabled.'

@mock.patch((UTILS_MODULE + '.CourseMode.mode_for_course'))
def test_ecommerce_disabled(self, mock_get_mode):

    update_commerce_config(enabled=False, checkout_page=self.checkout_path)
    mock_mode = mock.Mock()
    mock_mode.sku = self.sku
    mock_get_mode.return_value = mock_mode
    CourseEnrollmentFactory(user=self.user, course_id=self.course.id, mode=MODES.audit)
    data = ProgramDataExtender(self.program, self.user).extend()
    self._assert_supplemented(data, is_enrolled=True, upgrade_url=None)
