Exemple #1
0
def test_assert_raise_asserts_true_for_callable_that_raises_exception():

    def f():
        raise Exception
    chuck.assert_raises(Exception, f)
Exemple #2
0
def test_assert_raise_asserts_true_for_empty_callable():

    def f():
        pass
    chuck.assert_raises(Exception, f)