def setUp(self): self.phone_match = '9876543210' self.person_list = PersonFactory.create_batch(11) self.user = SuperUserFactory.create() self.client.force_authenticate(user=self.user) self.interceptee_list = IntercepteeNoPhotoFactory.create_batch(3) self.pb_list = PersonBoxFactory.create_batch(2) self.irf_list = IrfFactory.create_batch(2) self.vif_list = VifFactory.create_batch(2) self.alias_list = AliasGroupFactory.create_batch(1) self.interceptee_list[0].person = self.person_list[0] self.pb_list[0].person = self.person_list[0] self.pb_list[1].person = self.person_list[0] self.interceptee_list[1].person = self.person_list[1] self.vif_list[0].victim = self.person_list[2] self.interceptee_list[2].person = self.person_list[3] self.vif_list[1].victim = self.person_list[4] self.person_list[3].alias_group = self.alias_list[0] self.person_list[4].alias_group = self.alias_list[0] self.person_list[3].phone_contact = self.phone_match + '01' self.person_list[4].phone_contact = self.phone_match + '02' self.person_list[3].full_name = "Raymond Smith" self.person_list[4].full_name = "Raymond Smythe" self.interceptee_list[0].interception_record = self.irf_list[0] self.interceptee_list[1].interception_record = self.irf_list[1] self.interceptee_list[2].interception_record = self.irf_list[1] self.pb_list[0].victim_interview = self.vif_list[0] self.pb_list[1].victim_interview = self.vif_list[1] for idx in range(0,3): self.interceptee_list[idx].save() for idx in range(0,2): self.pb_list[idx].save() for idx in range(0,2): self.vif_list[idx].save() for idx in range(0,5): self.person_list[idx].save()
def setUp(self): self.vif_list = VifFactory.create_batch(20) self.user = SuperUserFactory.create() self.client.force_authenticate(user=self.user)