~ubuntuone-control-tower/u1db/trunk

« back to all changes in this revision

Viewing changes to u1db/tests/test_http_app.py

  • Committer: Tarmac
  • Author(s): Eric Casteleijn, Samuele Pedroni (Canonical Services Ltd.)
  • Date: 2012-07-05 15:56:23 UTC
  • mfrom: (327.4.19 sync_integration_tests)
  • Revision ID: tarmac-20120705155623-s58zcpgng2083hjh
Added integration tests for the detection of a diverged source or target db during sync and made them pass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1016
1016
            sync_exchange_class = MySyncExchange
1017
1017
 
1018
1018
        sync_res = MySyncResource('foo', 'src', self.state, None)
1019
 
        sync_res.post_args({'last_known_generation': 0}, '{}')
 
1019
        sync_res.post_args(
 
1020
            {'last_known_generation': 0, 'last_known_trans_id': None}, '{}')
1020
1021
        self.assertIsInstance(sync_res.sync_exch, MySyncExchange)