Esempio n. 1
0
 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")
Esempio n. 2
0
 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")
Esempio n. 3
0
 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")
Esempio n. 4
0
 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")