/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_dir.py

Import gettext.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Test the GitDir class"""
18
18
 
19
19
from dulwich.repo import Repo as GitRepo
 
20
import os
20
21
 
21
22
from bzrlib import (
22
23
    bzrdir,
23
24
    errors,
 
25
    urlutils,
24
26
    )
25
27
from bzrlib.tests import TestSkipped
26
28
 
33
35
 
34
36
class TestGitDir(tests.TestCaseInTempDir):
35
37
 
 
38
    def test_get_head_branch_reference(self):
 
39
        GitRepo.init(".")
 
40
 
 
41
        gd = bzrdir.BzrDir.open('.')
 
42
        self.assertEquals(
 
43
            "%s,ref=refs%%2Fheads%%2Fmaster" %
 
44
                urlutils.local_path_to_url(os.path.abspath(".")),
 
45
            gd.get_branch_reference())
 
46
 
36
47
    def test_open_existing(self):
37
48
        GitRepo.init(".")
38
49