mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00

svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
15 lines
536 B
Python
15 lines
536 B
Python
import decimal
|
|
from unittest import TestCase
|
|
|
|
from json import decoder
|
|
from json import encoder
|
|
|
|
class TestSpeedups(TestCase):
|
|
def test_scanstring(self):
|
|
self.assertEquals(decoder.scanstring.__module__, "_json")
|
|
self.assertTrue(decoder.scanstring is decoder.c_scanstring)
|
|
|
|
def test_encode_basestring_ascii(self):
|
|
self.assertEquals(encoder.encode_basestring_ascii.__module__, "_json")
|
|
self.assertTrue(encoder.encode_basestring_ascii is
|
|
encoder.c_encode_basestring_ascii)
|