def test_anonymize_with_name(self): dcm = dicom.read_file(os.path.join(self.test_dir, "rtplan.dcm"), force=True) anonymizer.anonymize(dcm, patient_name="testname") self.assertEqual(dcm.PatientsName, "testname")
def test_anonymize_with_name(self): dcm = dicom.read_file(os.path.join(self.test_dir,"rtplan.dcm"), force=True) anonymizer.anonymize(dcm, patient_name="testname") self.assertEqual(dcm.PatientsName, "testname")
def test_anonymize_with_id(self): dcm = dicom.read_file(os.path.join(self.test_dir, "rtplan.dcm"), force=True) anonymizer.anonymize(dcm, patient_id="testid") self.assertEqual(dcm.PatientID, "testid")
def test_anonymize_with_id(self): dcm = dicom.read_file(os.path.join(self.test_dir,"rtplan.dcm"), force=True) anonymizer.anonymize(dcm, patient_id="testid") self.assertEqual(dcm.PatientID, "testid")