我需要创建一个伪辅助类,用于单元测试(注入测试类).有没有办法在这样的类中使用TestCase断言?
我想将断言用于Fake类执行的一些常见检查.就像是:
class FakeFoo(object): def do_foo(self, a, b): assertNotNull(a) ...
python unit-testing
python ×1
unit-testing ×1