/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/commands/test_revert.py

  • Committer: Jelmer Vernooij
  • Date: 2017-06-08 23:30:31 UTC
  • mto: This revision was merged to the branch mainline in revision 6690.
  • Revision ID: jelmer@jelmer.uk-20170608233031-3qavls2o7a1pqllj
Update imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        locks_acquired = []
39
39
        locks_released = []
40
40
        lock.Lock.hooks.install_named_hook('lock_acquired',
41
 
                                           locks_acquired.append, None)
 
41
            locks_acquired.append, None)
42
42
        lock.Lock.hooks.install_named_hook('lock_released',
43
 
                                           locks_released.append, None)
 
43
            locks_released.append, None)
44
44
 
45
45
        # execute the revert command (There is nothing to actually revert,
46
46
        # but locks are acquired either way.)
58
58
        # make sure that the locks are checkout locks.
59
59
        self.assertEndsWith(locks_acquired[0].lock_url, "/checkout/lock")
60
60
        self.assertEndsWith(locks_released[0].lock_url, "/checkout/lock")
 
61