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

def setUp(self):

    super(BulkEnrollmentTest, self).setUp()
    self.view = BulkEnrollView.as_view()
    self.request_factory = APIRequestFactory()
    self.url = reverse('bulk_enroll')
    self.staff = UserFactory.create(username=self.USERNAME, email=self.EMAIL, password=self.PASSWORD, is_staff=True)
    self.course = CourseFactory.create()
    self.course_key = unicode(self.course.id)
    self.enrolled_student = UserFactory(username='EnrolledStudent', first_name='Enrolled', last_name='Student')
    CourseEnrollment.enroll(self.enrolled_student, self.course.id)
    self.notenrolled_student = UserFactory(username='NotEnrolledStudent', first_name='NotEnrolled', last_name='Student')
    self.site_name = microsite.get_value('SITE_NAME', settings.SITE_NAME)
    self.about_path = '/courses/{}/about'.format(self.course.id)
    self.course_path = '/courses/{}/'.format(self.course.id)
