def testAddEntry(self): """dicom_dictionary: Can add and use a single dictionary entry""" add_dict_entry(0x10011001, "UL", "TestOne", "Test One") add_dict_entry(0x10011002, "DS", "TestTwo", "Test Two", VM='3') ds = Dataset() ds.TestOne = 'test' ds.TestTwo = ['1', '2', '3']
def test_add_entry_raises_for_private_tag(self): with pytest.raises(ValueError, match='Private tags cannot be ' 'added using "add_dict_entries"'): add_dict_entry(0x10011101, 'DS', 'Test One', 'Test One')