How should I verify a log message when testing Python code under nose?

前端 未结 11 742
谎友^
谎友^ 2020-12-13 01:12

I\'m trying to write a simple unit test that will verify that, under a certain condition, a class in my application will log an error via the standard logging API. I can\'t

11条回答
提交回复
热议问题