为测试正确性,您需要生成一些参考文件,以便与类的所有未来版本的输出相比较。
To test for correctness, you need to generate some reference files that you can compare to the output from all future versions of the class.
这些打印类用于检索后台打印文件、输出队列、打印机以及其他打印资源的列表。
These print classes are used to retrieve lists of spooled files, output queues, printers, and other print resources.
这个函数调用feedparser . parse函数,传递测试用的RSS文件,输出解析结果,并通过testcase类的assert函数执行基本的检查统作。
This function calls the feedparser.parse function with the test RSS file, outputs the parsed results, and performs some basic checks via the TestCase class assert functions.
应用推荐