Back to index

python3.2  3.2.2
Namespaces | Classes | Functions | Variables
test.json_tests Namespace Reference

Namespaces

namespace  test_decode
namespace  test_default
namespace  test_dump
namespace  test_encode_basestring_ascii
namespace  test_fail
namespace  test_float
namespace  test_indent
namespace  test_pass1
namespace  test_pass2
namespace  test_pass3
namespace  test_recursion
namespace  test_scanstring
namespace  test_separators
namespace  test_speedups
namespace  test_unicode

Classes

class  PyTest
class  CTest
class  TestPyTest
class  TestCTest

Functions

def test_suite
def additional_tests
def main

Variables

tuple cjson = support.import_fresh_module('json', fresh=['_json'])
tuple pyjson = support.import_fresh_module('json', blocked=['_json'])
tuple here = os.path.dirname(__file__)

Function Documentation

Definition at line 58 of file __init__.py.

00058 
00059 def additional_tests():
00060     suite = unittest.TestSuite()
00061     for mod in (json, json.encoder, json.decoder):
00062         suite.addTest(doctest.DocTestSuite(mod))
00063     suite.addTest(TestPyTest('test_pyjson'))
00064     suite.addTest(TestCTest('test_cjson'))
00065     return suite

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 66 of file __init__.py.

00066 
00067 def main():
00068     suite = test_suite()
00069     runner = unittest.TextTestRunner()
00070     runner.run(suite)

Here is the call graph for this function:

Definition at line 47 of file __init__.py.

00047 
00048 def test_suite():
00049     suite = additional_tests()
00050     loader = unittest.TestLoader()
00051     for fn in os.listdir(here):
00052         if fn.startswith("test") and fn.endswith(".py"):
00053             modname = "test.json_tests." + fn[:-3]
00054             __import__(modname)
00055             module = sys.modules[modname]
00056             suite.addTests(loader.loadTestsFromModule(module))
00057     return suite

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

tuple test.json_tests.cjson = support.import_fresh_module('json', fresh=['_json'])

Definition at line 10 of file __init__.py.

tuple test.json_tests.here = os.path.dirname(__file__)

Definition at line 45 of file __init__.py.

tuple test.json_tests.pyjson = support.import_fresh_module('json', blocked=['_json'])

Definition at line 11 of file __init__.py.