/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_git_remote_helper.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:
74
74
 
75
75
    def test_no_wants(self):
76
76
        r = self.fetch([])
77
 
        self.assertEqual("\n", r)
 
77
        self.assertEqual(b"\n", r)
78
78
 
79
79
    def test_simple(self):
80
80
        self.build_tree(['remote/foo'])
103
103
        f = BytesIO()
104
104
        self.helper.cmd_capabilities(f, [])
105
105
        capabs = f.getvalue()
106
 
        base = "fetch\noption\npush\n"
107
 
        self.assertTrue(capabs in (base+"\n", base+"import\n\n"), capabs)
 
106
        base = b"fetch\noption\npush\n"
 
107
        self.assertTrue(capabs in (base+b"\n", base+b"import\n\n"), capabs)
108
108
 
109
109
    def test_option(self):
110
110
        f = BytesIO()
111
111
        self.helper.cmd_option(f, [])
112
 
        self.assertEqual("unsupported\n", f.getvalue())
 
112
        self.assertEqual(b"unsupported\n", f.getvalue())
113
113
 
114
114
    def test_list_basic(self):
115
115
        f = BytesIO()
116
116
        self.helper.cmd_list(f, [])
117
117
        self.assertEqual(
118
 
            '\n',
 
118
            b'\n',
119
119
            f.getvalue())
120
120
 
121
121
    def test_import(self):