/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

Add more tests for fetch code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Test the GitDir class"""
18
18
 
19
 
from bzrlib import bzrdir, errors
 
19
from bzrlib import (
 
20
    bzrdir,
 
21
    errors,
 
22
    )
 
23
from bzrlib.tests import TestSkipped
20
24
 
21
 
from bzrlib.plugins.git import tests
22
 
from bzrlib.plugins.git import git_dir, git_workingtree
 
25
from bzrlib.plugins.git import (
 
26
    dir,
 
27
    tests,
 
28
    workingtree,
 
29
    )
23
30
 
24
31
 
25
32
class TestGitDir(tests.TestCaseInTempDir):
30
37
        tests.run_git('init')
31
38
 
32
39
        gd = bzrdir.BzrDir.open('.')
33
 
        self.assertIsInstance(gd, git_dir.GitDir)
 
40
        self.assertIsInstance(gd, dir.LocalGitDir)
34
41
 
35
42
    def test_open_workingtree(self):
36
43
        tests.run_git('init')
37
44
 
38
45
        gd = bzrdir.BzrDir.open('.')
 
46
        raise TestSkipped
39
47
        wt = gd.open_workingtree()
40
 
        self.assertIsInstance(wt, git_workingtree.GitWorkingTree)
 
48
        self.assertIsInstance(wt, workingtree.GitWorkingTree)
41
49
 
42
50
    def test_open_workingtree_bare(self):
43
51
        tests.run_git('--bare', 'init')
52
60
 
53
61
    def setUp(self):
54
62
        super(TestGitDirFormat, self).setUp()
55
 
        self.format = git_dir.GitBzrDirFormat()
 
63
        self.format = dir.LocalGitBzrDirFormat()
56
64
 
57
65
    def test_get_format_description(self):
58
66
        self.assertEquals("Local Git Repository",