/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

  • Committer: Jelmer Vernooij
  • Date: 2018-03-02 01:59:40 UTC
  • mfrom: (0.200.1791 work)
  • mto: (0.200.1795 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180302015940-41gwnoymxc2go3bq
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
from ..remote import (
27
27
    split_git_url,
28
28
    parse_git_error,
 
29
    RemoteGitBranchFormat,
29
30
    )
30
31
 
31
32
class SplitUrlTests(TestCase):
64
65
    def test_notbrancherror(self):
65
66
        e = parse_git_error("url", "\n Could not find Repository foo/bar")
66
67
        self.assertIsInstance(e, NotBranchError)
 
68
 
 
69
 
 
70
class TestRemoteGitBranchFormat(TestCase):
 
71
 
 
72
    def setUp(self):
 
73
        super(TestRemoteGitBranchFormat, self).setUp()
 
74
        self.format = RemoteGitBranchFormat()
 
75
 
 
76
    def test_get_format_description(self):
 
77
        self.assertEquals("Remote Git Branch", self.format.get_format_description())
 
78
 
 
79
    def test_get_network_name(self):
 
80
        self.assertEquals("git", self.format.network_name())
 
81
 
 
82
    def test_supports_tags(self):
 
83
        self.assertTrue(self.format.supports_tags())