# Régions / Implantations
#########################
self.REGION_ACGL = ref.Region.objects.get(id=1)
+ self.ZA_ACGL = ref.ZoneAdministrative.objects.get(code=u'ACGL')
self.IMPLANTATION_ACGL_CNF_NGAOUNDERE = ref.Implantation.objects.get(id=90)
self.IMPLANTATION_ACGL_CNF_BANGUI = ref.Implantation.objects.get(id=85)
self.REGION_BAP = ref.Region.objects.get(id=4)
+ self.ZA_BAP = ref.ZoneAdministrative.objects.get(code=u'AP')
self.IMPLANTATION_BAP_BUREAU = ref.Implantation.objects.get(id=51)
self.IMPLANTATION_BAP_IFI = ref.Implantation.objects.get(id=55)
self.assertEqual(len(resp.context['lignes']), 1)
params = {
- 'region': self.REGION_ACGL.id,
+ 'zone_administrative': self.ZA_ACGL.code,
'annee': self.today.year,
}
resp = self.client.get(self.url, params)