/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

  • Committer: Martin
  • Date: 2017-11-12 13:53:51 UTC
  • mto: This revision was merged to the branch mainline in revision 6810.
  • Revision ID: gzlist@googlemail.com-20171112135351-uyr1ncw7visg62c2
Apply 2to3 ws_comma fixer

Show diffs side-by-side

added added

removed removed

Lines of Context:
1155
1155
 
1156
1156
    def test_iteritems_keys_prefixed_by_2_width_nodes(self):
1157
1157
        chkmap = self._get_map(
1158
 
            {("a","a"):"content here", ("a", "b",):"more content",
 
1158
            {("a", "a"):"content here", ("a", "b",):"more content",
1159
1159
             ("b", ""): 'boring content'},
1160
1160
            maximum_size=10, key_width=2)
1161
1161
        self.assertEqual(
1171
1171
        self.assertEqual('71BEEFF9\x0000000000',
1172
1172
                         search_key_func(StaticTuple('b', '')))
1173
1173
        chkmap = self._get_map(
1174
 
            {("a","a"):"content here", ("a", "b",):"more content",
 
1174
            {("a", "a"):"content here", ("a", "b",):"more content",
1175
1175
             ("b", ""): 'boring content'},
1176
1176
            maximum_size=10, key_width=2, search_key_func=search_key_func)
1177
1177
        self.assertEqual(
1180
1180
 
1181
1181
    def test_iteritems_keys_prefixed_by_2_width_one_leaf(self):
1182
1182
        chkmap = self._get_map(
1183
 
            {("a","a"):"content here", ("a", "b",):"more content",
 
1183
            {("a", "a"):"content here", ("a", "b",):"more content",
1184
1184
             ("b", ""): 'boring content'}, key_width=2)
1185
1185
        self.assertEqual(
1186
1186
            {("a", "a"): "content here", ("a", "b"): 'more content'},