Example #1
0
 def test_auto_blocking_small_bankr_docket(self):
     """Do we properly set small bankruptcy dockets to private?"""
     d = Docket()
     d.court = Court.objects.get(pk='akb')
     blocked, date_blocked = get_blocked_status(d)
     self.assertTrue(blocked, msg="Bankruptcy dockets with few entries "
                                  "should be blocked.")
     blocked, date_blocked = get_blocked_status(d, count_override=501)
     self.assertFalse(blocked, msg="Bankruptcy dockets with many entries "
                                   "should not be blocked")
     # This should stay blocked even though it's a big bankruptcy docket.
     d.blocked = True
     blocked, date_blocked = get_blocked_status(d, count_override=501)
     self.assertTrue(blocked, msg="Bankruptcy dockets that start blocked "
                                  "should stay blocked.")
Example #2
0
 def test_auto_blocking_small_bankr_docket(self):
     """Do we properly set small bankruptcy dockets to private?"""
     d = Docket()
     d.court = Court.objects.get(pk='akb')
     blocked, date_blocked = get_blocked_status(d)
     self.assertTrue(blocked,
                     msg="Bankruptcy dockets with few entries "
                     "should be blocked.")
     blocked, date_blocked = get_blocked_status(d, count_override=501)
     self.assertFalse(blocked,
                      msg="Bankruptcy dockets with many entries "
                      "should not be blocked")
     # This should stay blocked even though it's a big bankruptcy docket.
     d.blocked = True
     blocked, date_blocked = get_blocked_status(d, count_override=501)
     self.assertTrue(blocked,
                     msg="Bankruptcy dockets that start blocked "
                     "should stay blocked.")