~lifeless/storm/bug-620615

« back to all changes in this revision

Viewing changes to tests/databases/base.py

  • Committer: Gustavo Niemeyer
  • Date: 2008-04-04 23:03:34 UTC
  • mfrom: (215.3.1 trace-success)
  • Revision ID: gustavo@niemeyer.net-20080404230334-mdfnc6ldbahtledk
Merged trace-success branch [r=jamesh,jkakar] [f=199332]

This branch adds a hook to trace statement execution success, so
that tracking execution times and so on is possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
525
525
        self.connection.rollback()
526
526
        self.assertRaises(DisconnectionError,
527
527
                          self.connection.execute, "SELECT 1")
528
 
 
529
 
    def test_close_connection_after_disconnect(self):
530
 
        result = self.connection.execute("SELECT 1")
531
 
        self.assertTrue(result.get_one())
532
 
        self.proxy.stop()
533
 
        self.assertRaises(DisconnectionError,
534
 
                          self.connection.execute, "SELECT 1")
535
 
        self.connection.close()