def centre_fixture1(): c1 = Centre("Randwick Hospital", "Randwick", "Hospital", 1234, 93000000) c2 = Centre("Prince of Wales", "Randwick", "Hospital", 1234, 93000000) c3 = Centre("Randwick Hospital", "Randwick", "Hospital", 1234, 93000000) return [c1, c2, c3]
def cm2(prov_fixture2): cm = CentreManager() c1 = Centre("Randwick Hospital", "Randwick", "Hospital", 1234, 93000000) c2 = Centre("Prince of Wales", "Randwick", "Hospital", 1234, 93000000) c3 = Centre("Randwick Hospital", "Randwick", "Hospital", 1234, 93000000) c3.add_provider(prov_fixture2[0]) c3.add_provider(prov_fixture2[2]) c4 = Centre("RPA", "Camperdown", "Hospital", 1234, 93000000) c4.add_provider(prov_fixture2[0]) c4.add_provider(prov_fixture2[1]) c4.add_provider(prov_fixture2[2]) for centre in [c1, c2, c3, c4]: cm.add_centre(centre) return cm
def add_centre_from_details(self, name, suburb, id, type, phone): centre = Centre(name, suburb, id, type, phone) return self.add_centre(centre)