Esempio n. 1
0
def test_is_benign_2():
    """Second criterias for likely benign:
    
    Benign
      (ii) ≥2 Supporting (BP1–BP7)

    """
    # GIVEN values that fulfill the (ii) criteria for likely benign
    bs_terms = []
    bp_terms = ["BP1", "BP2"]
    ## WHEN performing the evaluation
    res = is_likely_benign(bs_terms, bp_terms)
    ## THEN assert the criterias are fullfilled
    assert res

    bp_terms = ["BP1"]
    res = is_likely_benign(bs_terms, bp_terms)
    assert not res
Esempio n. 2
0
def test_is_benign_2():
    """Second criterias for likely benign:
    
    Benign
      (ii) ≥2 Supporting (BP1–BP7)

    """
    # GIVEN values that fulfill the (ii) criteria for likely benign
    bs_terms = []
    bp_terms = ['BP1', 'BP2']
    ## WHEN performing the evaluation
    res = is_likely_benign(bs_terms, bp_terms)
    ## THEN assert the criterias are fullfilled
    assert res
    
    bp_terms = ['BP1']
    res = is_likely_benign(bs_terms, bp_terms)
    assert not res
Esempio n. 3
0
def test_is_likely_benign_1():
    """First criterias for likely benign:
    
    Likely Benign
      (i) 1 Strong (BS1–BS4) and 1 supporting (BP1– BP7) OR

    """
    # GIVEN values that fulfill the (i) criteria for likely benign
    bs_terms = ["BS1"]
    bp_terms = ["BP1"]
    ## WHEN performing the evaluation
    res = is_likely_benign(bs_terms, bp_terms)
    ## THEN assert the criterias are fullfilled
    assert res

    bp_terms = []
    res = is_likely_benign(bs_terms, bp_terms)
    assert not res
Esempio n. 4
0
def test_is_likely_benign_1():
    """First criterias for likely benign:
    
    Likely Benign
      (i) 1 Strong (BS1–BS4) and 1 supporting (BP1– BP7) OR

    """
    # GIVEN values that fulfill the (i) criteria for likely benign
    bs_terms = ['BS1']
    bp_terms = ['BP1']
    ## WHEN performing the evaluation
    res = is_likely_benign(bs_terms, bp_terms)
    ## THEN assert the criterias are fullfilled
    assert res
    
    bp_terms = []
    res = is_likely_benign(bs_terms, bp_terms)
    assert not res