~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_push.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-05-21 14:57:43 UTC
  • mfrom: (4347.3.2 interbranch-dpush-result)
  • Revision ID: pqm@pqm.ubuntu.com-20090521145743-3ttnkw77ofepprzq
(Jelmer) Return BranchPushResult from InterBranch.lossy_push().

Show diffs side-by-side

added added

removed removed

Lines of Context:
436
436
        self.assertTrue(len(self.hpss_calls) <= 9, self.hpss_calls)
437
437
 
438
438
 
 
439
class TestLossyPush(TestCaseWithBranch):
 
440
 
 
441
    def setUp(self):
 
442
        self.hook_calls = []
 
443
        TestCaseWithBranch.setUp(self)
 
444
 
 
445
    def test_lossy_push_raises_same_vcs(self):
 
446
        target = self.make_branch('target')
 
447
        source = self.make_branch('source')
 
448
        self.assertRaises(errors.LossyPushToSameVCS, source.lossy_push, target)