def test_invalid_operands():
 with pytest.raises(ModelDefinitionError):
  (Rotation2D | Gaussian1D)
 with pytest.raises(ModelDefinitionError):
  (Rotation2D(90) | Gaussian1D(1, 0, 0.1))
 with pytest.raises(ModelDefinitionError):
  (Rotation2D + Gaussian1D)
 with pytest.raises(ModelDefinitionError):
  (Rotation2D(90) + Gaussian1D(1, 0, 0.1))

def test_invalid_operands ( ) : with pytest . raises ( ModelDefinitionError ) : ( Rotation2D | Gaussian1D ) with pytest . raises ( ModelDefinitionError ) : ( Rotation2D ( 90 ) | Gaussian1D ( 1 , 0 , 0.1 ) ) with pytest . raises ( ModelDefinitionError ) : ( Rotation2D + Gaussian1D ) with pytest . raises ( ModelDefinitionError ) : ( Rotation2D ( 90 ) + Gaussian1D ( 1 , 0 , 0.1 ) )
test that certain operators do not work with models whose inputs/outputs do not match up correctly .