def test_is_is_element_type_Estimator(): assert Scorer.is_element_type("Estimator")
def test_is_is_element_type_Transformer(): assert Scorer.is_element_type("Transformer")
def test_is_is_element_type_bad(): with pytest.raises(PhotonaiError): assert Scorer.is_element_type("Clustering")
def test_metric_is_element_type_error(): with pytest.raises(PhotonaiError): assert Scorer.is_element_type('fred')
def test_metric_is_element_type_estimator(): assert Scorer.is_element_type(Scorer.ELEMENT_TYPES[Scorer.ESTID])
def test_metric_is_element_type(): assert Scorer.is_element_type(Scorer.ELEMENT_TYPES[Scorer.TRANID])