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

Update docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import os
24
24
 
25
 
from bzrlib.bzrdir import (
26
 
    BzrDir,
27
 
    )
28
 
 
 
25
from bzrlib.tests import KnownFailure
29
26
from bzrlib.tests.blackbox import ExternalBase
30
27
 
31
28
from bzrlib.plugins.git import (
45
42
 
46
43
    def test_nick(self):
47
44
        GitRepo.init(self.test_dir)
48
 
        dir = BzrDir.open(self.test_dir)
49
 
        dir.create_branch()
50
45
        output, error = self.run_bzr(['nick'])
51
 
        self.assertEquals("master\n", output)
 
46
        self.assertEquals("HEAD\n", output)
52
47
 
53
48
    def test_info(self):
54
49
        self.simple_commit()
117
112
 
118
113
    def test_tags(self):
119
114
        git_repo, commit_sha1 = self.simple_commit()
120
 
        git_repo.refs["refs/tags/foo"] = commit_sha1
 
115
        git_repo.set_ref("refs/tags/foo", commit_sha1)
121
116
 
122
117
        output, error = self.run_bzr(['tags'])
123
118
        self.assertEquals(error, '')
134
129
    def test_init_repo(self):
135
130
        output, error = self.run_bzr(["init-repo", "--git", "bla.git"])
136
131
        self.assertEquals(error, '')
137
 
        self.assertEquals(output, 'Shared repository with trees (format: git)\nLocation:\n  shared repository: bla.git\n')
 
132
        self.assertEquals(output, 'Repository branch (format: git)\nLocation:\n  shared repository: bla.git\n  repository branch: bla.git\n')
138
133