assertRaises (AttributeError): value = d.empty. 编写单元测试时,我们需要编写一个测试类,从 unittest.TestCase 继承。 以 test 开头的方法就是测试方法,不以 test ...
確定! 回上一頁