阅读背景:

一个mock / stub python模块如何像urllib一样

来源:互联网 

I need to test a function that needs to query a page on an external server using urllib.urlopen (it also uses urllib.urlencode). The server could be down, the page could change; I can't rely on it for a test.I need to test a function that needs to query a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: