Comment 2 for bug 1086508

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

Test case added:

.............................................F......................................
======================================================================
FAIL: testEmptyIndexes (test.TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "modules/org/openteacher/lessonTypes/test/test.py", line 48, in testEmptyIndexes
    lessonType.start()
  File "modules/org/openteacher/lessonTypes/interval/interval.py", line 72, in start
    self._sendNext()
  File "modules/org/openteacher/lessonTypes/interval/interval.py", line 164, in _sendNext
    self.newItem.send(self._modifyItem(item))
  File "modules/org/openteacher/event/event.py", line 35, in send
    handler(*args, **kwargs)
  File "modules/org/openteacher/lessonTypes/test/test.py", line 44, in newItem
    self.assertTrue(False, msg="newItem should not be called when an empty indexes list is passed.")
AssertionError: False is not True : newItem should not be called when an empty indexes list is passed.

----------------------------------------------------------------------
Ran 84 tests in 0.346s

FAILED (failures=1)