~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to test/orm/test_unitofwork.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski
  • Date: 2011-04-14 23:37:40 UTC
  • mfrom: (1.4.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110414233740-tp3s4rtv1c0giev7
Tags: 0.6.7-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
2289
2289
            @reconstructor
2290
2290
            def go(self):
2291
2291
                # blow away 'id', no change event.
2292
 
                # this simulates a callable occuring
 
2292
                # this simulates a callable occurring
2293
2293
                # before 'id' was even populated, i.e. a callable
2294
2294
                # within an attribute_mapped_collection
2295
2295
                self.__dict__.pop('id', None)
2321
2321
        # and thing would right themselves.
2322
2322
        assert_raises_message(sa.orm.exc.FlushError,
2323
2323
                              'has a NULL identity key.  Check if this '
2324
 
                              'flush is occuring at an inappropriate '
 
2324
                              'flush is occurring at an inappropriate '
2325
2325
                              'time, such as during a load operation.',
2326
2326
                              sess.query(T1).first)
2327
2327