MCPcopy Index your code
hub / github.com/python/cpython / test_all

Method test_all

Lib/test/test_codecs.py:1840–1861  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1838 self.assertEqual(c.name, 'ascii')
1839
1840 def test_all(self):
1841 api = (
1842 "encode", "decode",
1843 "register", "CodecInfo", "Codec", "IncrementalEncoder",
1844 "IncrementalDecoder", "StreamReader", "StreamWriter", "lookup",
1845 "getencoder", "getdecoder", "getincrementalencoder",
1846 "getincrementaldecoder", "getreader", "getwriter",
1847 "register_error", "lookup_error",
1848 "strict_errors", "replace_errors", "ignore_errors",
1849 "xmlcharrefreplace_errors", "backslashreplace_errors",
1850 "namereplace_errors",
1851 "open", "EncodedFile",
1852 "iterencode", "iterdecode",
1853 "BOM", "BOM_BE", "BOM_LE",
1854 "BOM_UTF8", "BOM_UTF16", "BOM_UTF16_BE", "BOM_UTF16_LE",
1855 "BOM_UTF32", "BOM_UTF32_BE", "BOM_UTF32_LE",
1856 "BOM32_BE", "BOM32_LE", "BOM64_BE", "BOM64_LE", # Undocumented
1857 "StreamReaderWriter", "StreamRecoder",
1858 )
1859 self.assertCountEqual(api, codecs.__all__)
1860 for api in codecs.__all__:
1861 getattr(codecs, api)
1862
1863 def test_open(self):
1864 self.addCleanup(os_helper.unlink, os_helper.TESTFN)

Callers

nothing calls this directly

Calls 1

assertCountEqualMethod · 0.80

Tested by

no test coverage detected