'Scenario: On the Membership tab of the Instructor Dashboard, Batch Enrollment div is visible.
Given that I am on the Membership tab on the Instructor Dashboard
Then I enter the email and enroll it.
Logout the current page.
And Navigate to the registration page and register the student.
Then I see the course which enrolled the student.'

def test_enroll_unregister_student(self):

    username = 'test_{uuid}'.format(uuid=self.unique_id[0:6])
    email = '{user}@example.com'.format(user=username)
    self.auto_enroll_section.fill_enrollment_batch_text_box(email)
    self.assertIn('Successfully    sent    enrollment    emails    to    the    following    users.    They    will    be    enrolled    once    they    register:', self.auto_enroll_section.get_notification_text())
    LogoutPage(self.browser).visit()
    self.register_page.visit()
    self.register_page.register(email=email, password='123456', username=username, full_name='Test    User', terms_of_service=True, country='US', favorite_movie='Harry    Potter')
    course_names = self.dashboard_page.wait_for_page().available_courses
    self.assertEquals(len(course_names), 1)
    self.assertIn(self.course_info['display_name'], course_names)
