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