コード例 #1
0
ファイル: test_sop.py プロジェクト: tony32769/pynetdicom3
 def test_unknown_uid_raises(self):
     """Test that an unknown UID raises exception."""
     with pytest.raises(NotImplementedError):
         uid_to_service_class('1.2.3')
コード例 #2
0
ファイル: test_sop.py プロジェクト: tony32769/pynetdicom3
 def test_qr_uids(self):
     """Test that the QR SOP Class UIDs work correctly."""
     for uid in _QR_CLASSES.values():
         assert uid_to_service_class(uid) == QueryRetrieveServiceClass
コード例 #3
0
ファイル: test_sop.py プロジェクト: tony32769/pynetdicom3
 def test_basic_worklist_uids(self):
     """Test that the Basic Worklist SOP Class UIDs work correctly."""
     for uid in _BASIC_WORKLIST_CLASSES.values():
         assert uid_to_service_class(uid) == BasicWorklistManagementServiceClass
コード例 #4
0
ファイル: test_sop.py プロジェクト: tony32769/pynetdicom3
 def test_verification_uids(self):
     """Test that the Verification SOP Class UIDs work correctly."""
     for uid in _VERIFICATION_CLASSES.values():
         assert uid_to_service_class(uid) == VerificationServiceClass
コード例 #5
0
ファイル: test_sop.py プロジェクト: tony32769/pynetdicom3
 def test_storage_uids(self):
     """Test that the Storage SOP Class UIDs work correctly."""
     for uid in _STORAGE_CLASSES.values():
         assert uid_to_service_class(uid) == StorageServiceClass
コード例 #6
0
 def test_display_system_uids(self):
     """Test that Display System SOP Class UIDs work correctly."""
     for uid in _DISPLAY_SYSTEM_CLASSES.values():
         assert uid_to_service_class(
             uid) == DisplaySystemManagementServiceClass
コード例 #7
0
 def test_unknown_uid(self):
     """Test that an unknown UID returns default service class."""
     assert uid_to_service_class('1.2.3') == ServiceClass
コード例 #8
0
 def test_ups_uids(self):
     """Test that the UPS SOP Class UIDs work correctly."""
     for uid in _UNITED_PROCEDURE_STEP_CLASSES.values():
         assert uid_to_service_class(uid) == ServiceClass
コード例 #9
0
 def test_rt_machine_uids(self):
     """Test that the RT Verification SOP Class UIDs work correctly."""
     for uid in _RT_MACHINE_VERIFICATION_CLASSES.values():
         assert uid_to_service_class(uid) == ServiceClass
コード例 #10
0
 def test_procedure_uids(self):
     """Test that the Procedure SOP Class UIDs work correctly."""
     for uid in _PROCEDURE_STEP_CLASSES.values():
         assert uid_to_service_class(uid) == ServiceClass
コード例 #11
0
 def test_print_uids(self):
     """Test that the Print SOP Class UIDs work correctly."""
     for uid in _PRINT_MANAGEMENT_CLASSES.values():
         assert uid_to_service_class(uid) == ServiceClass
コード例 #12
0
 def test_non_patient_uids(self):
     """Test that the Non-Patient Object SOP Class UIDs work correctly."""
     for uid in _NON_PATIENT_OBJECT_CLASSES.values():
         assert uid_to_service_class(
             uid) == NonPatientObjectStorageServiceClass
コード例 #13
0
 def test_substance_admin_uids(self):
     """Test that the Substance Administration SOP Class UIDs work correctly."""
     for uid in _SUBSTANCE_ADMINISTRATION_CLASSES.values():
         assert uid_to_service_class(
             uid) == SubstanceAdministrationQueryServiceClass
コード例 #14
0
 def test_relevant_patient_uids(self):
     """Test that the Relevant Patient SOP Class UIDs work correctly."""
     for uid in _RELEVANT_PATIENT_QUERY_CLASSES.values():
         assert uid_to_service_class(
             uid) == RelevantPatientInformationQueryServiceClass