def test_type_exception():
 with pytest.raises(TypeError) as exc:
  discretize_model(float(0), ((-10), 11))
 assert (exc.value.args[0] == u'Model must be callable.')

def test_type_exception ( ) : with pytest . raises ( TypeError ) as exc : discretize_model ( float ( 0 ) , ( ( - 10 ) , 11 ) ) assert ( exc . value . args [ 0 ] == u'Model must be callable.' )
test type exception .