Ejemplo n.º 1
0
def test_villous_location(path, result, index):
    """

    :param path:
    :param result:
    :param index:
        * 0 - any
        * 1 - proximal
        * 2 - distal
        * 3 - rectal
        * 4 - unknown
    :return:
    """
    jm = JarManager()
    jm.cursory_diagnosis_examination(path)
    tbv = jm.get_histology(Histology.TUBULOVILLOUS)
    vil = jm.get_histology(Histology.VILLOUS)
    assert tbv[index] or vil[index] == result
Ejemplo n.º 2
0
def test_villous_text(path, result):
    jm = JarManager()
    jm.cursory_diagnosis_examination(path)
    tbv = jm.get_histology(Histology.TUBULOVILLOUS)
    vil = jm.get_histology(Histology.VILLOUS)
    assert tbv[0] or vil[0] == result