Test for section import auto-adding to teachers and students groups
-------------------------------------------------------------------

Log in as manager:

    >>> manager = browsers.manager
    >>> manager.ui.login('manager', 'schooltool')

We will import a special test xls file for testing the automatic adding of
section members to the students group and of instrutors to the teachers group:

    >>> import os
    >>> dirname = os.path.abspath(os.path.dirname(__file__))
    >>> filename = os.path.join(dirname, 'section_teachers_students.xls')
    >>> manager.ui.import_xls(filename)

Let's look at the teachers group:

    >>> manager.query.link('School').click()
    >>> manager.query.link('Teachers').click()

We see the teachers of our two sections are in the group.

    >>> print manager.query_all.xpath('//table[@class="data"]//td[1]//a').get_attribute('href')
    http://localhost/persons/teacher001?done_link=http://localhost/schoolyears/2006-2008/groups/teachers
    http://localhost/persons/teacher003?done_link=http://localhost/schoolyears/2006-2008/groups/teachers

Let's look at the students group:

    >>> manager.query.link('School').click()
    >>> manager.query.link('Students').click()

We see the students in our two sections are in the group.

    >>> print manager.query_all.xpath('//table[@class="data"]//td[1]//a').get_attribute('href')
    http://localhost/persons/student004?done_link=http://localhost/schoolyears/2006-2008/groups/students
    http://localhost/persons/student006?done_link=http://localhost/schoolyears/2006-2008/groups/students
    http://localhost/persons/student008?done_link=http://localhost/schoolyears/2006-2008/groups/students
    http://localhost/persons/student009?done_link=http://localhost/schoolyears/2006-2008/groups/students
    http://localhost/persons/student002?done_link=http://localhost/schoolyears/2006-2008/groups/students

