/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: 2019-08-06 07:11:09 UTC
  • mto: This revision was merged to the branch mainline in revision 7380.
  • Revision ID: jelmer@jelmer.uk-20190806071109-9hpyx668kg0bsv9k
Handle invalid repository name on GitHub.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        self.assertEqual(e.path, 'porridge/gaduhistory.git')
126
126
        self.assertEqual(e.extra, ': denied to jelmer')
127
127
 
 
128
    def test_invalid_repo_name(self):
 
129
        e = parse_git_error(
 
130
            "url",
 
131
            """Gregwar/fatcat/tree/debian is not a valid repository name
 
132
Email support@github.com for help
 
133
""")
 
134
        self.assertIsInstance(e, NotBranchError)
 
135
 
128
136
 
129
137
class TestRemoteGitBranchFormat(TestCase):
130
138