]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/test_default.py
AppPkg/Applications/Python/Python-2.7.10: Initial Checkin part 4/5.
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Lib / json / tests / test_default.py
diff --git a/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/test_default.py b/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/test_default.py
new file mode 100644 (file)
index 0000000..74aacee
--- /dev/null
@@ -0,0 +1,12 @@
+from json.tests import PyTest, CTest\r
+\r
+\r
+class TestDefault(object):\r
+    def test_default(self):\r
+        self.assertEqual(\r
+            self.dumps(type, default=repr),\r
+            self.dumps(repr(type)))\r
+\r
+\r
+class TestPyDefault(TestDefault, PyTest): pass\r
+class TestCDefault(TestDefault, CTest): pass\r