Exemplo n.º 1
0
 def setUp(self):
     agency = AgencyFactory(appeal_agency=AppealAgencyFactory())
     self.foia = FOIARequestFactory(agency=agency)
     self.view = Detail.as_view()
     self.url = self.foia.get_absolute_url()
     self.kwargs = {
         'jurisdiction': self.foia.jurisdiction.slug,
         'jidx': self.foia.jurisdiction.id,
         'slug': self.foia.slug,
         'idx': self.foia.id
     }
Exemplo n.º 2
0
 def setUp(self):
     self.appeal_agency = AppealAgencyFactory()
     self.agency = AgencyFactory(status='approved',
                                 appeal_agency=self.appeal_agency)
     self.foia = FOIARequestFactory(agency=self.agency, status='rejected')