/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/blackbox/test_pack.py

  • Committer: Jelmer Vernooij
  • Date: 2020-03-22 01:35:14 UTC
  • mfrom: (7490.7.6 work)
  • mto: This revision was merged to the branch mainline in revision 7499.
  • Revision ID: jelmer@jelmer.uk-20200322013514-7vw1ntwho04rcuj3
merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        self._make_file(path, line_prefix, total_lines, versioned=True)
29
29
 
30
30
    def _make_file(self, path, line_prefix, total_lines, versioned):
31
 
        text=''
 
31
        text = ''
32
32
        for i in range(total_lines):
33
 
            text += line_prefix + str(i+1) + "\n"
 
33
            text += line_prefix + str(i + 1) + "\n"
34
34
 
35
35
        with open(path, 'w') as f:
36
36
            f.write(text)
90
90
    def test_simple_pack(self):
91
91
        self.setup_smart_server_with_call_log()
92
92
        t = self.make_branch_and_tree('branch')
93
 
        self.build_tree_contents([('branch/foo', 'thecontents')])
 
93
        self.build_tree_contents([('branch/foo', b'thecontents')])
94
94
        t.add("foo")
95
95
        t.commit("message")
96
96
        self.reset_smart_call_log()