PATH: //opt/cloudlinux/venv/lib/python3.11/site-packages/simplejson/tests
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 _cibw_runner.py
↓
X
📄 test_bigint_as_string.py
↓
X
📄 test_bitsize_int_as_string.py
↓
X
📄 test_check_circular.py
↓
X
📄 test_decimal.py
↓
X
📄 test_decode.py
↓
X
📄 test_default.py
↓
X
📄 test_dump.py
↓
X
📄 test_encode_basestring_ascii.py
↓
X
📄 test_encode_for_html.py
↓
X
📄 test_errors.py
↓
X
📄 test_fail.py
↓
X
📄 test_float.py
↓
X
📄 test_for_json.py
↓
X
📄 test_indent.py
↓
X
📄 test_item_sort_key.py
↓
X
📄 test_iterable.py
↓
X
📄 test_namedtuple.py
↓
X
📄 test_pass1.py
↓
X
📄 test_pass2.py
↓
X
📄 test_pass3.py
↓
X
📄 test_raw_json.py
↓
X
📄 test_recursion.py
↓
X
📄 test_scanstring.py
↓
X
📄 test_separators.py
↓
X
📄 test_speedups.py
↓
X
📄 test_str_subclass.py
↓
X
📄 test_subclass.py
↓
X
📄 test_tool.py
↓
X
📄 test_tuple.py
↓
X
📄 test_unicode.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: test_str_subclass.py
from unittest import TestCase import simplejson from simplejson.compat import text_type # Tests for issue demonstrated in https://github.com/simplejson/simplejson/issues/144 class WonkyTextSubclass(text_type): def __getslice__(self, start, end): return self.__class__('not what you wanted!') class TestStrSubclass(TestCase): def test_dump_load(self): for s in ['', '"hello"', 'text', u'\u005c']: self.assertEqual( s, simplejson.loads(simplejson.dumps(WonkyTextSubclass(s)))) self.assertEqual( s, simplejson.loads(simplejson.dumps(WonkyTextSubclass(s), ensure_ascii=False)))
SIMPAN PERUBAHAN