# built-in tests from xml.marshal import generic, wddx generic.runtests() wddx.runtests() # additional tests try: from test.test_support import verify except ImportError: from test.test_support import TestFailed def verify(condition, reason="test failed"): if not condition: raise TestFailed(reason) # test for correct processing of ignorable whitespace data = """ 1 2 """ verify(generic.loads(data) == [1, 2])