/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/test__chk_map.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for _chk_map_*."""
18
18
 
19
 
from bzrlib import (
 
19
from .. import (
20
20
    chk_map,
21
21
    tests,
22
22
    )
23
 
from bzrlib.static_tuple import StaticTuple
 
23
from ..static_tuple import StaticTuple
24
24
stuple = StaticTuple
25
25
 
26
26
 
27
 
def load_tests(standard_tests, module, loader):
 
27
def load_tests(loader, standard_tests, pattern):
28
28
    suite, _ = tests.permute_tests_for_extension(standard_tests, loader,
29
 
        'bzrlib._chk_map_py', 'bzrlib._chk_map_pyx')
 
29
        'breezy._chk_map_py', 'breezy._chk_map_pyx')
30
30
    return suite
31
31
 
32
32
 
62
62
        for char_in in range(256):
63
63
            search_key = self.module._search_key_255(stuple(chr(char_in),))
64
64
            chars_used.update(search_key)
65
 
        all_chars = set([chr(x) for x in range(256)])
 
65
        all_chars = {chr(x) for x in range(256)}
66
66
        unused_chars = all_chars.symmetric_difference(chars_used)
67
67
        self.assertEqual(set('\n'), unused_chars)
68
68