Ejemplo n.º 1
0
 def setUp(self):
     TestScript.setUp(self)
     location = Location.objects.get(code='de')
     facilitytype = SupplyPointType.objects.get(code='hc')
     rms = Facility.objects.get(code='garms')
     facility = Facility(code='dedh',
                         name='Dangme East District Hospital',
                         location=location,
                         active=True,
                         type=facilitytype,
                         supplied_by=rms)
     facility.save()