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

  • Committer: Jelmer Vernooij
  • Date: 2018-07-01 21:13:21 UTC
  • mto: This revision was merged to the branch mainline in revision 7027.
  • Revision ID: jelmer@jelmer.uk-20180701211321-dazu15ry3tcvny2l
Fix some git tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        self.assertEqual("Remote Git Branch", self.format.get_format_description())
97
97
 
98
98
    def test_get_network_name(self):
99
 
        self.assertEqual("git", self.format.network_name())
 
99
        self.assertEqual(b"git", self.format.network_name())
100
100
 
101
101
    def test_supports_tags(self):
102
102
        self.assertTrue(self.format.supports_tags())
284
284
            self.assertRaises(DivergedBranches, wt.branch.push, newbranch, lossy=True)
285
285
 
286
286
        self.assertEqual(
287
 
                {'refs/heads/newbranch': c1 },
 
287
                {b'refs/heads/newbranch': c1 },
288
288
                self.remote_real.get_refs())
289
289
 
290
290
        if self._from_format == 'git':
430
430
        remote = ControlDir.open(self.remote_url)
431
431
        remote_branch = remote.open_branch()
432
432
        self.assertEqual({
433
 
            b'blah': default_mapping.revision_id_foreign_to_bzr(c2)},
 
433
            'blah': default_mapping.revision_id_foreign_to_bzr(c2)},
434
434
            remote_branch.tags.get_tag_dict())
435
435
 
436
436
    def tetst_get_branch_reference(self):