/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-09-10 13:13:15 UTC
  • mto: (0.200.602 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090910131315-6890xg58pl2jseml
Allow serving remote URLs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import os
27
27
 
28
28
from bzrlib import (
29
 
    errors,
30
29
    revision,
31
30
    )
32
31
from bzrlib.branch import (
40
39
    )
41
40
 
42
41
from bzrlib.plugins.git import (
43
 
    LocalGitBzrDirFormat,
44
42
    branch,
45
43
    tests,
46
44
    )
47
 
from bzrlib.plugins.git.mapping import (
48
 
    default_mapping,
49
 
    )
 
45
from bzrlib.plugins.git.mapping import default_mapping
50
46
 
51
47
 
52
48
class TestGitBranch(tests.TestCaseInTempDir):
127
123
        self.assertIs(None, self.git_branch.get_parent())
128
124
 
129
125
    def test_get_stacked_on_url(self):
130
 
        self.assertRaises(errors.UnstackableBranchFormat, 
131
 
            self.git_branch.get_stacked_on_url)
 
126
        self.assertIs(None, self.git_branch.get_stacked_on_url())
132
127
 
133
128
    def test_get_physical_lock_status(self):
134
129
        self.assertFalse(self.git_branch.get_physical_lock_status())
180
175
        newbranch = self.clone_git_branch(path, "f")
181
176
        self.assertEquals({"lala": revid}, newbranch.tags.get_tag_dict())
182
177
        self.assertEquals([revid], newbranch.repository.all_revision_ids())
183
 
 
184
 
 
185
 
class ForeignTestsBranchFactory(object):
186
 
 
187
 
    def make_empty_branch(self, transport):
188
 
        return LocalGitBzrDirFormat().initialize_on_transport(transport).open_branch()
189
 
 
190
 
    make_branch = make_empty_branch