我撰写了一份专门的超文本帽子,我想与几页的样本网页一下载进行单位测试。
In Java, I ve used class resources, to load data into unit tests, without having to rely on them being at a particular path on the file system. Is there a way to do this in Python?
我发现doctestfile(功能,但看来是具体测试。 我只想拿一个档案,处理一个与现有模块相对的特别超文本文件。
事先感谢任何建议!