/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 breezy/git/tests/test_remote.py

  • Committer: Jelmer Vernooij
  • Date: 2020-07-05 12:50:01 UTC
  • mfrom: (7490.40.46 work)
  • mto: (7490.40.48 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200705125001-7s3vo0p55szbbws7
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Test the smart client."""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
from io import BytesIO
20
22
 
21
23
import os
143
145
""")
144
146
        self.assertIsInstance(e, NotBranchError)
145
147
 
146
 
    def test_invalid_git_error(self):
147
 
        self.assertEqual(
148
 
            PermissionDenied(
149
 
                'url',
150
 
                'GitLab: You are not allowed to push code to protected '
151
 
                'branches on this project.'),
152
 
            parse_git_error(
153
 
                'url',
154
 
                RemoteGitError(
155
 
                    'GitLab: You are not allowed to push code to '
156
 
                    'protected branches on this project.')))
157
 
 
158
148
 
159
149
class ParseHangupTests(TestCase):
160
150