5
If a schooltool operation relies on there being at least one term set up, and
6
the administator has not gotten around to doing that, we need to fail
7
gracefully. That means giving the user an error message rather than crashing.
9
Let's log in as manager and create a student.
11
>>> from schooltool.basicperson.browser.ftests import setup
12
>>> manager = Browser('manager', 'schooltool')
13
>>> setup.addPerson('Student', 'One', 'student1', 'pwd')
15
We'll navigate to the student and hit the Intervention Center button. Since
16
there is no current schoolyear, we'll redirect to the no current term view.
18
>>> manager.getLink('Manage').click()
19
>>> manager.getLink('Persons').click()
20
>>> manager.getLink('One').click()
21
>>> manager.getLink('Intervention Center').click()
23
'http://localhost/no_current_term.html'