'If the E-Commerce Service is not configured, the view should enroll the user.'

@override_settings(ECOMMERCE_API_URL=None)
def test_ecommerce_service_not_configured(self):

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