def assert_not_raise(method, parameters, exception):
    try:
        method(*parameters)
    except exception:
        msg = "Exception %s not expected to be raised" % exception.__name__
        raise AssertionError(msg)
dataset/ETHPy150Open vandersonmota/model_mommy/test/generic/tests/test_filling_fields.py/assert_not_raise/original