|
3 | 3 | from itertools import zip_longest
|
4 | 4 | from unittest import TestCase
|
5 | 5 |
|
6 |
| -from json_stream.select_tokenizer import default_tokenizer |
7 | 6 |
|
8 | 7 | from json_stream import load
|
9 | 8 | from json_stream.base import TransientAccessException
|
10 | 9 |
|
11 | 10 |
|
12 | 11 | class JSONLoadTestCase(TestCase):
|
13 |
| - def _test_object(self, obj, persistent, binary=False, tokenizer=default_tokenizer): |
| 12 | + def _test_object(self, obj, persistent, binary=False, tokenizer=None): |
14 | 13 | self.assertListEqual(list(self._to_data(obj, persistent, binary, tokenizer)), list(obj))
|
15 | 14 | self.assertListEqual(list(self._to_data(obj, persistent, binary, tokenizer).keys()), list(obj.keys()))
|
16 | 15 | self.assertListEqual(list(self._to_data(obj, persistent, binary, tokenizer).values()), list(obj.values()))
|
@@ -40,7 +39,7 @@ def _test_object(self, obj, persistent, binary=False, tokenizer=default_tokenize
|
40 | 39 | with self.assertRaises(TransientAccessException):
|
41 | 40 | data.items() # can't get keys
|
42 | 41 |
|
43 |
| - def _test_list(self, obj, persistent, binary=False, tokenizer=default_tokenizer): |
| 42 | + def _test_list(self, obj, persistent, binary=False, tokenizer=None): |
44 | 43 | self.assertListEqual(list(self._to_data(obj, persistent, binary, tokenizer)), list(obj))
|
45 | 44 | if persistent:
|
46 | 45 | self.assertEqual(len(self._to_data(obj, persistent, binary, tokenizer)), len(obj))
|
|
0 commit comments