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

Fix unpeel map.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Test the smart client."""
18
18
 
 
19
from bzrlib.errors import (
 
20
    BzrError,
 
21
    NotBranchError,
 
22
    )
 
23
 
19
24
from bzrlib.tests import TestCase
20
25
 
21
26
from bzrlib.plugins.git.remote import (
22
27
    split_git_url,
 
28
    parse_git_error,
23
29
    )
24
30
 
25
31
class SplitUrlTests(TestCase):
47
53
    def test_homedir(self):
48
54
        self.assertEquals(("foo", None, None, "~bar"),
49
55
            split_git_url("git://foo/~bar"))
 
56
 
 
57
 
 
58
class ParseGitErrorTests(TestCase):
 
59
 
 
60
    def test_unknown(self):
 
61
        e = parse_git_error("url", "foo")
 
62
        self.assertIsInstance(e, BzrError)
 
63
 
 
64
    def test_notbrancherror(self):
 
65
        e = parse_git_error("url", "\n Could not find Repository foo/bar")
 
66
        self.assertIsInstance(e, NotBranchError)