@pytest.mark.parametrize(u'model', [((Shift(0) + Shift(0)) | Shift(0)), ((Shift(0) - Shift(0)) | Shift(0)), ((Shift(0) * Shift(0)) | Shift(0)), ((Shift(0) / Shift(0)) | Shift(0)), ((Shift(0) ** Shift(0)) | Shift(0)), (Gaussian1D(1, 2, 3) | Gaussian1D(4, 5, 6))])
def test_compound_unsupported_inverse(model):
 with pytest.raises(NotImplementedError):
  model.inverse

@ pytest . mark . parametrize ( u'model' , [ ( ( Shift ( 0 ) + Shift ( 0 ) ) | Shift ( 0 ) ) , ( ( Shift ( 0 ) - Shift ( 0 ) ) | Shift ( 0 ) ) , ( ( Shift ( 0 ) * Shift ( 0 ) ) | Shift ( 0 ) ) , ( ( Shift ( 0 ) / Shift ( 0 ) ) | Shift ( 0 ) ) , ( ( Shift ( 0 ) ** Shift ( 0 ) ) | Shift ( 0 ) ) , ( Gaussian1D ( 1 , 2 , 3 ) | Gaussian1D ( 4 , 5 , 6 ) ) ] ) def test_compound_unsupported_inverse ( model ) : with pytest . raises ( NotImplementedError ) : model . inverse
ensure inverses arent supported in cases where it shouldnt be .