def test_message_contains_returns_false(): func = check.message_contains('foo') assert not func(Exception('bob barker'), 1)
def test_message_contains_returns_true(): func = check.message_contains('foo') assert func(Exception('bob foo'), 1)