X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=AppPkg%2FApplications%2FPython%2FPython-2.7.2%2FLib%2Fjson%2Ftests%2Ftest_dump.py;fp=AppPkg%2FApplications%2FPython%2FPython-2.7.2%2FLib%2Fjson%2Ftests%2Ftest_dump.py;h=0000000000000000000000000000000000000000;hp=755096b2a361458e472f928116274b54cc39d6f1;hb=964f432b9b0afe103c41c7613fade3e699118afe;hpb=e2d3a25f1a3135221a9c8061e1b8f90245d727eb diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/test_dump.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/test_dump.py deleted file mode 100644 index 755096b2a3..0000000000 --- a/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/test_dump.py +++ /dev/null @@ -1,23 +0,0 @@ -from cStringIO import StringIO -from json.tests import PyTest, CTest - - -class TestDump(object): - def test_dump(self): - sio = StringIO() - self.json.dump({}, sio) - self.assertEqual(sio.getvalue(), '{}') - - def test_dumps(self): - self.assertEqual(self.dumps({}), '{}') - - def test_encode_truefalse(self): - self.assertEqual(self.dumps( - {True: False, False: True}, sort_keys=True), - '{"false": true, "true": false}') - self.assertEqual(self.dumps( - {2: 3.0, 4.0: 5L, False: 1, 6L: True}, sort_keys=True), - '{"false": 1, "2": 3.0, "4.0": 5, "6": true}') - -class TestPyDump(TestDump, PyTest): pass -class TestCDump(TestDump, CTest): pass