/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 tests/test_branch.py

  • Committer: Jelmer Vernooij
  • Date: 2009-10-12 09:41:06 UTC
  • mto: (0.200.644 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20091012094106-4ubc41ms0mr22v52
Use foreign branch testing infrastructure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    )
40
40
 
41
41
from bzrlib.plugins.git import (
 
42
    LocalGitBzrDirFormat,
42
43
    branch,
43
44
    tests,
44
45
    )
45
 
from bzrlib.plugins.git.mapping import default_mapping
 
46
from bzrlib.plugins.git.mapping import (
 
47
    default_mapping,
 
48
    )
46
49
 
47
50
 
48
51
class TestGitBranch(tests.TestCaseInTempDir):
175
178
        newbranch = self.clone_git_branch(path, "f")
176
179
        self.assertEquals({"lala": revid}, newbranch.tags.get_tag_dict())
177
180
        self.assertEquals([revid], newbranch.repository.all_revision_ids())
 
181
 
 
182
 
 
183
class ForeignTestsBranchFactory(object):
 
184
 
 
185
    def make_empty_branch(self, transport):
 
186
        return LocalGitBzrDirFormat().initialize_on_transport(transport).open_branch()
 
187
 
 
188
    make_branch = make_empty_branch