Skip to content

Commit

Permalink
Add tests for ACMS
Browse files Browse the repository at this point in the history
local/test_PacerParseACMSDocketTest.py
examples/pacer/dockets/acms/*

Note that we use `*.acms_json` as input files, as `PacerParseTestCase`
expects `*.json` as the test output, so having input and output files
with the same extension would cause problems.
  • Loading branch information
johnhawkinson committed Oct 12, 2023
1 parent 334553d commit b8fdf9e
Show file tree
Hide file tree
Showing 15 changed files with 3,078 additions and 0 deletions.
85 changes: 85 additions & 0 deletions tests/examples/pacer/dockets/acms/ca2_23-7222.acms_json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"caseDetails": {
"caseId": "9f5ae37f-c44e-4194-b075-3f8f028559c4",
"caseNumber": "23-7222",
"name": "United States of America v. Raji",
"caseOpened": "2023-10-02",
"aNumber": null,
"receivedDate": "2023-10-02T10:55:11Z",
"partyAttorneyList": "<table width='100%'><tr><td width='30%' style='padding-bottom: 20px;'> UNITED STATES OF AMERICA<br>&nbsp;&nbsp;&nbsp;&nbsp;AppelleeUSA, </td><td style='padding-bottom: 20px;'><div style='margin-bottom: 10px'>Won S. Shin, Assistant U.S. Attorney<br>Email: won.shin@usdoj.gov<br>[US Attorney]<br>United States Attorney's Office for the Southern District of New York<br>One Saint Andrew's Plaza<br>New York, NY 10007</div></td></tr><tr><td width='30%' style='padding-bottom: 20px;'> MUSTAPHA RAJI<br>&nbsp;&nbsp;&nbsp;&nbsp;AKA Sealed Defendant 1, <br>&nbsp;&nbsp;&nbsp;&nbsp;Appellant, </td><td style='padding-bottom: 20px;'><div style='margin-bottom: 10px'>Jeremy Schneider, -<br>Direct: 212-571-5500<br>Email: jschneider@rssslaaw.com<br>[CJA Appointment]<br>Rothman, Schneider, Soloway & Stern, LLP<br>100 Lafayette Street<br>Suite 501<br>New York, NY 10013</div></td></tr></table>",
"shortCaption": "United States of America,<br>\\n<br>\\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Appellee,<br>\\n<br>\\n&nbsp;&nbsp; v.<br>\\n<br>\\nMustapha Raji, &nbsp;AKA Sealed Defendant 1,<br>\\n<br>\\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Defendant - Appellant.\\n\\n",
"court": {
"name": "S.D.N.Y . (NEW YORK CITY)",
"identifier": "S.D.N.Y. (NEW YORK CITY)"
},
"caseType": "Criminal",
"caseSubType": "Direct Criminal",
"caseSubSubType": null,
"districtCourtName": null,
"feeStatus": "IFP Granted",
"byteCount": 1325
},
"docketInfo": {
"isCaseSealed": false,
"isUserCaseParticipant": false,
"byteCount": 544,
"docketEntries": [
{
"endDate": "2023-09-29",
"endDateFormatted": "09/29/2023",
"entryNumber": 1,
"docketEntryText": "<p>NOTICE OF CRIMINAL APPEAL, with district court docket, on behalf of Appellant Mustapha Raji, FILED. [Entered: 10/02/2023 11:17 AM]</p>",
"docketEntryId": "46de54cd-3561-ee11-be6e-001dd804e087",
"createdOn": "2023-10-02T15:10:22Z",
"documentCount": 1,
"pageCount": 18,
"fileSize": 142,
"restrictedPartyFilingDocketEntry": false,
"restrictedDocsAvailable": false,
"selected": false
},
{
"endDate": "2023-09-29",
"endDateFormatted": "09/29/2023",
"entryNumber": 2,
"docketEntryText": "<p>DISTRICT COURT JUDGMENT, dated 09/19/2023, RECEIVED. [Entered: 10/02/2023 11:20 AM]</p>",
"docketEntryId": "0d24550b-3761-ee11-be6e-001dd804e087",
"createdOn": "2023-10-02T15:19:17Z",
"documentCount": 1,
"pageCount": 8,
"fileSize": 319,
"restrictedPartyFilingDocketEntry": false,
"restrictedDocsAvailable": false,
"selected": false
},
{
"endDate": "2023-10-02",
"endDateFormatted": "10/02/2023",
"entryNumber": 3,
"docketEntryText": "<p>NOTICE OF CRIMINAL APPEAL, on behalf of Appellant Mustapha Raji, OPENED. [Entered: 10/02/2023 11:23 AM]</p>",
"docketEntryId": "b4cd2647-3761-ee11-be6e-001dd804e087",
"createdOn": "2023-10-02T15:21:02Z",
"documentCount": 2,
"pageCount": 20,
"fileSize": 275,
"restrictedPartyFilingDocketEntry": false,
"restrictedDocsAvailable": false,
"selected": false
},
{
"endDate": "2023-10-02",
"endDateFormatted": "10/02/2023",
"entryNumber": 4,
"docketEntryText": "<p>NOTICE OF APPEARANCE AS SUBSTITUTE COUNSEL/ADDITIONAL COUNSEL, on behalf of United States of America, FILED. [Entered: 10/02/2023 12:51 PM]</p>",
"docketEntryId": "167e8e98-4361-ee11-be6e-001dd804e4bd",
"createdOn": "2023-10-02T16:49:05Z",
"documentCount": 1,
"pageCount": 1,
"fileSize": 90,
"restrictedPartyFilingDocketEntry": false,
"restrictedDocsAvailable": false,
"selected": false
}
]
}
}
79 changes: 79 additions & 0 deletions tests/examples/pacer/dockets/acms/ca2_23-7222.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"appeal_from": "S.D.N.Y . (NEW YORK CITY)",
"case_name": "United States of America v. Raji",
"case_type_information": "Criminal, Direct Criminal",
"court_id": "ca2",
"date_filed": "2023-10-02",
"docket_entries": [
{
"date_entered": "2023-10-02T11:17:00",
"date_filed": "2023-10-02T11:17:00",
"description": "<p>NOTICE OF CRIMINAL APPEAL, with district court docket, on behalf of Appellant Mustapha Raji, FILED. [Entered: 10/02/2023 11:17 AM]</p>",
"document_number": 1,
"pacer_doc_id": "46de54cd-3561-ee11-be6e-001dd804e087",
"page_count": 18
},
{
"date_entered": "2023-10-02T11:20:00",
"date_filed": "2023-10-02T11:20:00",
"description": "<p>DISTRICT COURT JUDGMENT, dated 09/19/2023, RECEIVED. [Entered: 10/02/2023 11:20 AM]</p>",
"document_number": 2,
"pacer_doc_id": "0d24550b-3761-ee11-be6e-001dd804e087",
"page_count": 8
},
{
"date_entered": "2023-10-02T11:23:00",
"date_filed": "2023-10-02T11:23:00",
"description": "<p>NOTICE OF CRIMINAL APPEAL, on behalf of Appellant Mustapha Raji, OPENED. [Entered: 10/02/2023 11:23 AM]</p>",
"document_number": 3,
"pacer_doc_id": "b4cd2647-3761-ee11-be6e-001dd804e087",
"page_count": 20
},
{
"date_entered": "2023-10-02T12:51:00",
"date_filed": "2023-10-02T12:51:00",
"description": "<p>NOTICE OF APPEARANCE AS SUBSTITUTE COUNSEL/ADDITIONAL COUNSEL, on behalf of United States of America, FILED. [Entered: 10/02/2023 12:51 PM]</p>",
"document_number": 4,
"pacer_doc_id": "167e8e98-4361-ee11-be6e-001dd804e4bd",
"page_count": 1
}
],
"docket_number": "23-7222",
"fee_status": "IFP Granted",
"originating_court_information": {
"identifier": "S.D.N.Y. (NEW YORK CITY)",
"name": "S.D.N.Y . (NEW YORK CITY)"
},
"pacer_case_id": "9f5ae37f-c44e-4194-b075-3f8f028559c4",
"parties": [
{
"attorneys": [
{
"contact": "Email: won.shin@usdoj.gov\nUnited States Attorney's Office for the Southern District of New York\nOne Saint Andrew's Plaza\nNew York, NY 10007",
"name": "Won S. Shin, Assistant U.S. Attorney",
"roles": [
"US Attorney"
]
}
],
"name": "UNITED STATES OF AMERICA",
"type": "AppelleeUSA"
},
{
"attorneys": [
{
"contact": "Direct: 212-571-5500\nEmail: jschneider@rssslaaw.com\nRothman, Schneider, Soloway & Stern, LLP\n100 Lafayette Street\nSuite 501\nNew York, NY 10013",
"name": "Jeremy Schneider, -",
"roles": [
"CJA Appointment"
]
}
],
"name": "MUSTAPHA RAJI",
"type": "Appellant",
"unparsed": [
"\u00a0\u00a0\u00a0\u00a0AKA Sealed Defendant 1, "
]
}
]
}
Loading

0 comments on commit b8fdf9e

Please sign in to comment.