/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

SupportĀ sproutingĀ branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Black-box tests for bzr-git."""
18
18
 
 
19
import os
 
20
 
19
21
from bzrlib.tests import KnownFailure
20
22
from bzrlib.tests.blackbox import ExternalBase
21
23
 
41
43
        self.assertEqual(error, '')
42
44
        self.assertTrue("Repository branch (format: git)" in output)
43
45
 
 
46
    def test_branch(self):
 
47
        os.mkdir("gitbranch")
 
48
        os.chdir("gitbranch")
 
49
        tests.run_git('init')
 
50
        builder = tests.GitBranchBuilder()
 
51
        builder.set_file('a', 'text for a\n', False)
 
52
        builder.commit('Joe Foo <joe@foo.com>', u'<The commit message>')
 
53
        builder.finish()
 
54
 
 
55
        os.chdir("..")
 
56
        output, error = self.run_bzr(['branch', 'gitbranch', 'bzrbranch'])
 
57
        self.assertEqual(error, 'Branched 1 revision(s).\n')
 
58
        self.assertEqual(output, '')
 
59
 
44
60
    def test_ls(self):
45
61
        self.simple_commit()
46
62
        output, error = self.run_bzr(['ls'])