Esempio n. 1
0
 def test_parse_plea_case_numbers_blank(self):
     assert ScraperUtils.parse_plea_case_numbers("", [1, 2, 3]) == []
     assert ScraperUtils.parse_plea_case_numbers(None, [1, 2, 3]) == []
Esempio n. 2
0
 def test_parse_plea_case_numbers_messy(self):
     # Test a really ugly plea docket I found in one case
     plea = "PLEA OF NOT GUILTY/DENIAL, WAIVER OF ARRAIGNMENT, DEMAND FOR NOTICE OF EXPERT TESTIMONY, DEMAND FOR DISCOVERY, DEMAND FOR STATEMENT OF PARTICULARS, DEMAND FOR JURY TRIAL, DESIGNATION OF E-MAIL ADDRESSES PURSUANT TO RULE 2.516 1/28/2020"
     assert ScraperUtils.parse_plea_case_numbers(plea, [1, 2, 3]) == []
Esempio n. 3
0
 def test_parse_plea_case_numbers_multiple_case_numbers(self):
     plea = "DEFENDANT ENTERED PLEA OF NOLO CONTENDERE SEQ: 1,2,3,4,5"
     assert ScraperUtils.parse_plea_case_numbers(
         plea, [1, 2, 3, 4, 5, 6]) == [1, 2, 3, 4, 5]
Esempio n. 4
0
 def test_parse_plea_case_numbers_no_charge_numbers(self):
     plea = "DEFENDANT ENTERED PLEA OF NOLO CONTENDERE SEQ: 1,2,3,4,5"
     assert ScraperUtils.parse_plea_case_numbers(plea, []) == []
Esempio n. 5
0
 def test_parse_plea_case_numbers_one_charge_mentioned(self):
     plea = "DEFENDANT ENTERED PLEA OF : NOLO-CONTENDERE SEQ 2"
     assert ScraperUtils.parse_plea_case_numbers(plea, [1, 2]) == [2]
     assert ScraperUtils.parse_plea_case_numbers(plea, None) == []
Esempio n. 6
0
 def test_parse_plea_case_numbers__no_charge_mentioned(self):
     plea = "PLEA OF NOT GUILTY"
     assert ScraperUtils.parse_plea_case_numbers(plea, [1]) == []