~jbaker/storm/nose_plugin

« back to all changes in this revision

Viewing changes to tests/database.py

  • Committer: Gustavo Niemeyer
  • Date: 2006-05-20 23:03:44 UTC
  • Revision ID: gustavo@niemeyer.net-20060520230344-64a484082a93c286
- Added support for retrieving values automatically set by the
  database on inserts.
- Implemented support for deleting properties.
- Fixed support for subclassing. Can't have the same property
  instance in both the superclass and the subclass, since tables
  are different.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
        self.connection.rollback()
129
129
        self.assertEquals(self.executed, ["ROLLBACK"])
130
130
 
 
131
    def test_get_insert_identity(self):
 
132
        result = self.connection.execute("INSERT")
 
133
        self.assertRaises(NotImplementedError,
 
134
                          result.get_insert_identity, None, None)
131
135
 
132
136
class ResultTest(TestHelper):
133
137