    System objects
    ==============

    SchoolTool has a default user object and some default group objects.  These
    objects are special and cannot be deleted.

    This functional test makes sure they cannot be deleted via the browser
    interface.

    Setup
    -----

    Set up the basic school:

        >>> from schooltool.app.browser.ftests.setup import setUpBasicSchool
        >>> setUpBasicSchool()
        >>> manager_browser = Browser('manager', 'schooltool')

    Let us add a user and a group, so that container views have something besides
    the default system objects:

        >>> manager_browser.getLink('2005-2006').click()
        >>> manager_browser.getLink('Groups').click()
        >>> manager_browser.getLink('New Group').click()
        >>> manager_browser.getControl('Title').value = 'A Group'
        >>> manager_browser.getControl('Add').click()

        >>> from schooltool.basicperson.browser.ftests.setup import addPerson
        >>> addPerson('Stephan', 'Richter', 'srichter', 'foobar')

    Test
    ----

    The list of persons should have a disabled checkbox next to the manager user

        >>> manager_browser.open('http://localhost/persons')

        >>> manager_browser.printQuery('//table[@class="data"]//tr/td')
Default Manager Stephan Richter The list of groups should have a disabled checkbox next to the default groups >>> manager_browser.open('http://localhost/schoolyears/2005-2006/groups') >>> for td in analyze.queryHTML('//table[@class="data"]//tr/td', manager_browser.contents): ... print td A Group Clerks School Administrators Site Managers Students Teachers