/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/bzr/tests/test__groupcompress.py

  • Committer: Jelmer Vernooij
  • Date: 2020-07-05 12:50:01 UTC
  • mfrom: (7490.40.46 work)
  • mto: (7490.40.48 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200705125001-7s3vo0p55szbbws7
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from ...tests.scenarios import (
28
28
    load_tests_apply_scenarios,
29
29
    )
 
30
from ...sixish import (
 
31
    indexbytes,
 
32
    )
30
33
from ...tests import (
31
34
    features,
32
35
    )
467
470
        self.assertEqual(expected, data)
468
471
 
469
472
    def assertDecode(self, exp_offset, exp_length, exp_newpos, data, pos):
470
 
        cmd = data[pos]
 
473
        cmd = indexbytes(data, pos)
471
474
        pos += 1
472
475
        out = _groupcompress_py.decode_copy_instruction(data, cmd, pos)
473
476
        self.assertEqual((exp_offset, exp_length, exp_newpos), out)