'Verify that a user going to homepage will not redirect if he/she has no course enrollments'

def test_no_redirect_on_homepage_when_no_enrollments(self):

    self.setup_users()
    (email, password) = self.STUDENT_INFO[0]
    self.login(email, password)
    resp = self.client.get(reverse('root'), HTTP_HOST=settings.MICROSITE_TEST_HOSTNAME)
    self.assertEquals(resp.status_code, 200)
