Ejemplo n.º 1
0
 def test_local_exemptions(self):
     """An exemption at the local level should return 200."""
     local = factories.LocalJurisdictionFactory()
     exemption = factories.ExemptionFactory(jurisdiction=local)
     url = exemption.get_absolute_url()
     kwargs = exemption.jurisdiction.get_slugs()
     kwargs.update({'slug': exemption.slug, 'pk': exemption.pk})
     response = http_get_response(url, self.view, **kwargs)
     eq_(response.status_code, 200)
Ejemplo n.º 2
0
 def setUp(self):
     """Set up tests"""
     self.federal = factories.FederalJurisdictionFactory()
     self.state = factories.StateJurisdictionFactory(parent=self.federal)
     self.local = factories.LocalJurisdictionFactory(parent=self.state)