/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/test__chk_map.py

Support user.signingkey configuration variable in .git/config.

Merged from https://code.launchpad.net/~jelmer/brz/local-git-key/+merge/381000

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
from ..bzr import (
23
23
    chk_map,
24
24
    )
 
25
from ..sixish import int2byte
25
26
from ..static_tuple import StaticTuple
26
27
stuple = StaticTuple
27
28
 
64
65
        chars_used = set()
65
66
        for char_in in range(256):
66
67
            search_key = self.module._search_key_255(
67
 
                stuple(bytes([char_in]),))
68
 
            chars_used.update([bytes([x]) for x in search_key])
69
 
        all_chars = {bytes([x]) for x in range(256)}
 
68
                stuple(int2byte(char_in),))
 
69
            chars_used.update(map(int2byte, bytearray(search_key)))
 
70
        all_chars = {int2byte(x) for x in range(256)}
70
71
        unused_chars = all_chars.symmetric_difference(chars_used)
71
72
        self.assertEqual({b'\n'}, unused_chars)
72
73