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_separators.py
import textwrap from unittest import TestCase import simplejson as json class TestSeparators(TestCase): def test_separators(self): h = [['blorpie'], ['whoops'], [], 'd-shtaeou', 'd-nthiouh', 'i-vhbjkhnth', {'nifty': 87}, {'field': 'yes', 'morefield': False} ] expect = textwrap.dedent("""\ [ [ "blorpie" ] , [ "whoops" ] , [] , "d-shtaeou" , "d-nthiouh" , "i-vhbjkhnth" , { "nifty" : 87 } , { "field" : "yes" , "morefield" : false } ]""") d1 = json.dumps(h) d2 = json.dumps(h, indent=' ', sort_keys=True, separators=(' ,', ' : ')) h1 = json.loads(d1) h2 = json.loads(d2) self.assertEqual(h1, h) self.assertEqual(h2, h) self.assertEqual(d2, expect)
SIMPAN PERUBAHAN