This file is indexed.

/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/ftests/no_current_term.txt is in python-schooltool.gradebook 2.6.3-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
===============
No Current Term
===============

If a schooltool operation relies on there being at least one term set up, and
the administator has not gotten around to doing that, we need to fail
gracefully.  That means giving the user an error message rather than crashing.

Let's log in as manager and create a student.

    >>> from schooltool.basicperson.browser.ftests import setup
    >>> manager = Browser('manager', 'schooltool')
    >>> setup.addPerson('Student', 'One', 'student1', 'pwd')

We'll navigate to the student and request a report card, an operation that is
impossible without there being at least one term set up.  We'll test that the
user gets the error message.

    >>> manager.getLink('Manage').click()
    >>> manager.getLink('Persons').click()
    >>> manager.getLink('One').click()
    >>> manager.getLink('Reports').click()
    >>> manager.getLink('Student Report Card').click()
    >>> manager.printQuery("id('content-body')//h1/text()")
    The operation you attempted cannot be completed because there are
    currently no terms set up in your SchoolTool instance. Please have
    a user with administration access set up at least one term and try
    the operation again.