'Create a course and user, then log in.'

@patch.dict(settings.FEATURES, {'EMBARGO': True})
def setUp(self):

    super(EnrollmentTest, self).setUp()
    self.user = UserFactory.create(username=self.USERNAME, email=self.EMAIL, password=self.PASSWORD)
    self.client.login(username=self.USERNAME, password=self.PASSWORD)
    self.course_limited.max_student_enrollments_allowed = 1
    self.store.update_item(self.course_limited, self.user.id)
    self.urls = [reverse('course_modes_choose', kwargs={'course_id': unicode(self.course.id)})]
