Ejemplo n.º 1
0
 def test_appellate_cases_ok(self):
     """Do appellate cases get ordered/handled properly?"""
     expected_entry_count = 16
     pq = self.make_pq('ca1.html', upload_type=UPLOAD_TYPE.APPELLATE_DOCKET)
     returned_data = process_recap_appellate_docket(pq.pk)
     d1 = Docket.objects.get(pk=returned_data['docket_pk'])
     self.assertEqual(d1.docket_entries.count(), expected_entry_count)
Ejemplo n.º 2
0
    def test_parsing_appellate_docket(self):
        """Can we parse an HTML docket we have never seen before?"""
        returned_data = process_recap_appellate_docket(self.pq.pk)
        d = Docket.objects.get(pk=returned_data['docket_pk'])
        self.assertEqual(d.source, Docket.RECAP)
        self.assertTrue(d.case_name)
        self.assertEqual(d.appeal_from_id, 'hid')
        self.assertIn('Hawaii', d.appeal_from_str)

        # Test the originating court information
        og_info = d.originating_court_information
        self.assertTrue(og_info)
        self.assertIn('Gloria', og_info.court_reporter)
        self.assertEqual(og_info.date_judgment, date(2017, 3, 29))
        self.assertEqual(og_info.docket_number, u'1:17-cv-00050')