/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/tests/per_foreign_vcs/test_branch.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-02-14 03:16:54 UTC
  • mfrom: (7479.2.3 no-more-python2)
  • Revision ID: breezy.the.bot@gmail.com-20200214031654-bp1xtv2jr9nmhto3
Drop python2 support.

Merged from https://code.launchpad.net/~jelmer/brz/no-more-python2/+merge/378694

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
from breezy.tests import (
30
30
    TestCaseWithTransport,
31
31
    )
32
 
from breezy.sixish import (
33
 
    text_type,
34
 
    )
35
32
 
36
33
 
37
34
class ForeignBranchFactory(object):
99
96
    def test__get_nick(self):
100
97
        """Make sure _get_nick is implemented and returns a string."""
101
98
        branch = self.make_branch()
102
 
        self.assertIsInstance(branch._get_nick(local=False), text_type)
103
 
        self.assertIsInstance(branch._get_nick(local=True), text_type)
 
99
        self.assertIsInstance(branch._get_nick(local=False), str)
 
100
        self.assertIsInstance(branch._get_nick(local=True), str)
104
101
 
105
102
    def test_null_revid_revno(self):
106
103
        """null: should return revno 0."""