def test_disposition_type(self, index, expected): soup = hearing.get_test_soup(index) disposition_tr = hearing.get_disposition_tr_element(soup) if disposition_tr is None: dt = None else: dt = hearing.get_disposition_type(disposition_tr) assert dt == expected
def test_role_of_winning_party(self, index, expected): soup = hearing.get_test_soup(index) disposition_tr = hearing.get_disposition_tr_element(soup) if disposition_tr is None: winning_party = None else: plaintiff_name = hearing.get_plaintiff(soup) winning_party = hearing.get_disposition_winning_party( disposition_tr, plaintiff_name) assert winning_party == expected
def test_disposition_awarded_against(self, index, expected): soup = hearing.get_test_soup(index) disposition_tr = hearing.get_disposition_tr_element(soup) losing_party = hearing.get_disposition_awarded_against(disposition_tr) assert losing_party == expected
def test_disposition_awarded_to(self, index, expected): soup = hearing.get_test_soup(index) disposition_tr = hearing.get_disposition_tr_element(soup) winning_party = hearing.get_disposition_awarded_to(disposition_tr) assert winning_party == expected