Ejemplo n.º 1
0
 def testAutomaticClosing(self):
     """
     Test that if we create a writer and call the close-helper function,
     the writer gets closed.
     """
     writer = self.openWriteIndex()
     fulltext._closeIndexes()
     self.failUnless(writer.closed, "Writer should have been closed.")
Ejemplo n.º 2
0
 def testAutomaticClosing(self):
     """
     Test that if we create a writer and call the close-helper function,
     the writer gets closed.
     """
     writer = self.openWriteIndex()
     fulltext._closeIndexes()
     self.failUnless(writer.closed, "Writer should have been closed.")
Ejemplo n.º 3
0
 def testRepeatedClosing(self):
     """
     Test that if for some reason a writer is explicitly closed after the
     close-helper has run, nothing untoward occurs.
     """
     writer = self.openWriteIndex()
     fulltext._closeIndexes()
     writer.close()
     self.failUnless(writer.closed, "Writer should have stayed closed.")
Ejemplo n.º 4
0
 def testRepeatedClosing(self):
     """
     Test that if for some reason a writer is explicitly closed after the
     close-helper has run, nothing untoward occurs.
     """
     writer = self.openWriteIndex()
     fulltext._closeIndexes()
     writer.close()
     self.failUnless(writer.closed, "Writer should have stayed closed.")