/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

Cope with tuples in refs dictionary.

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
 
 
24
19
from bzrlib.tests import TestCase
25
20
 
26
21
from bzrlib.plugins.git.remote import (
27
22
    split_git_url,
28
 
    parse_git_error,
29
23
    )
30
24
 
31
25
class SplitUrlTests(TestCase):
53
47
    def test_homedir(self):
54
48
        self.assertEquals(("foo", None, None, "~bar"),
55
49
            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)