~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testremotebranch.py

  • Committer: John Arbash Meinel
  • Date: 2005-09-18 16:09:41 UTC
  • mto: (1185.1.32)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: john@arbash-meinel.com-20050918160940-ab133a1f31616576
Added test cases for handling bogus files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
        def new_branch(name):
31
31
            os.mkdir(name)
32
 
            return Branch(name, init=True)
 
32
            return Branch.initialize(name)
33
33
            
34
34
        #highest indices a: 5, b: 7
35
35
        br_a, br_b = make_branches()
36
 
        br_rem = find_branch(self.get_remote_url(br_a.base))
 
36
        br_rem = Branch.open(self.get_remote_url(br_a.base))
37
37
        assert not has_revision(br_b, br_rem.revision_history()[3])
38
38
        assert has_revision(br_b, br_rem.revision_history()[2])
39
39
        assert len(br_b.revision_history()) == 7