/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: 2018-11-16 18:35:30 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7178.
  • Revision ID: jelmer@jelmer.uk-20181116183530-ue8yx60h5tinl2wy
Merge more-cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
541
541
            'blah': default_mapping.revision_id_foreign_to_bzr(c2)},
542
542
            remote_branch.tags.get_tag_dict())
543
543
 
544
 
    def tetst_get_branch_reference(self):
 
544
    def test_get_branch_reference(self):
545
545
        c1 = self.remote_real.do_commit(
546
546
            message=b'message',
547
547
            committer=b'committer <committer@example.com>',
554
554
        remote = ControlDir.open(self.remote_url)
555
555
        self.assertEqual(b'refs/heads/master', remote.get_branch_reference(''))
556
556
        self.assertEqual(None, remote.get_branch_reference('master'))
 
557
 
 
558
    def test_get_branch_nick(self):
 
559
        c1 = self.remote_real.do_commit(
 
560
                message=b'message',
 
561
                committer=b'committer <committer@example.com>',
 
562
                author=b'author <author@example.com>')
 
563
        remote = ControlDir.open(self.remote_url)
 
564
        self.assertEqual('master', remote.open_branch().nick)