コード例 #1
0
 def test_peek_item(self):
     """Test peek_msg with nothing on the queue."""
     dimse = DIMSEServiceProvider(DummyAssociation())
     primitive = C_STORE()
     dimse.msg_queue.put((14, primitive))
     assert dimse.peek_msg() == (14, primitive)
コード例 #2
0
 def test_peek_empty(self):
     """Test peek_msg with nothing on the queue."""
     dimse = DIMSEServiceProvider(DummyAssociation())
     assert dimse.peek_msg() == (None, None)