def testGetChapterItem(self): """Test if getChapterItem() returns the right chapter""" data = open("./data/granulate_chapters_test.odt").read() oogranulator = OOGranulator(data, 'odt') self.assertEquals(['Title 1', 1], oogranulator.getChapterItem(1))