def with_verbosity_3(config, expect): helpers.init(format='%(message)s', verbosity=3) expect(config.mock_calls) == [call(format='%(message)s', level=10)]
def with_verbosity_0_and_debug(config, expect): helpers.init(format='%(message)s', verbosity=0, debug=True) expect(config.mock_calls) == [call(format='%(message)s', level=10)]
def with_verbosity_0(config, expect): helpers.init(format="%(message)s", verbosity=0) expect(config.mock_calls) == [call(format="%(message)s", level=40)]