diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-11-30 03:03:30 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-11-30 03:03:30 (GMT) |
commit | ff27ee0b400030419cfd3c9966f275bfbcb569f8 (patch) | |
tree | c2e45325768bd5256432667c387f304d549493e6 /Lib/json/tests/test_dump.py | |
parent | 69b34bfe9c3e5da1d7336a607ab56f1c3a178dca (diff) | |
download | cpython-ff27ee0b400030419cfd3c9966f275bfbcb569f8.zip cpython-ff27ee0b400030419cfd3c9966f275bfbcb569f8.tar.gz cpython-ff27ee0b400030419cfd3c9966f275bfbcb569f8.tar.bz2 |
Issue #10572: Moved json tests to Lib/test/json_tests.
Approved by Raymond Hettinger.
Diffstat (limited to 'Lib/json/tests/test_dump.py')
-rw-r--r-- | Lib/json/tests/test_dump.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Lib/json/tests/test_dump.py b/Lib/json/tests/test_dump.py deleted file mode 100644 index 8df234b..0000000 --- a/Lib/json/tests/test_dump.py +++ /dev/null @@ -1,21 +0,0 @@ -from unittest import TestCase -from io import StringIO - -import json - -class TestDump(TestCase): - def test_dump(self): - sio = StringIO() - json.dump({}, sio) - self.assertEqual(sio.getvalue(), '{}') - - def test_dumps(self): - self.assertEqual(json.dumps({}), '{}') - - def test_encode_truefalse(self): - self.assertEqual(json.dumps( - {True: False, False: True}, sort_keys=True), - '{"false": true, "true": false}') - self.assertEqual(json.dumps( - {2: 3.0, 4.0: 5, False: 1, 6: True}, sort_keys=True), - '{"false": 1, "2": 3.0, "4.0": 5, "6": true}') |