예제 #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")
예제 #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")
예제 #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")
예제 #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")