~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2009-05-29 15:06:16 UTC
  • mfrom: (4392 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4460.
  • Revision ID: john@arbash-meinel.com-20090529150616-m29oaesf6ekxr489
Merge bzr.dev, bringing in the gc stacking fixes.

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)