diff --git a/docs/changelog/v1.4.0.rst b/docs/changelog/v1.4.0.rst
index e3a4fa84b..4be63b2f8 100644
--- a/docs/changelog/v1.4.0.rst
+++ b/docs/changelog/v1.4.0.rst
@@ -9,6 +9,8 @@ Fixes
 
 * Fixed Query Retrieve service class not responded with ``0x0000`` (Success)
   if no matches were yielded by the C-FIND request handler.
+* Fixed association being aborted due to failure to decode a rejected
+  presentation context when the transfer syntax value is empty (:issue:`342`)
 
 
 Enhancements
diff --git a/pynetdicom/pdu_items.py b/pynetdicom/pdu_items.py
index 4570836a8..73cffcd47 100644
--- a/pynetdicom/pdu_items.py
+++ b/pynetdicom/pdu_items.py
@@ -961,8 +961,9 @@ class PresentationContextItemAC(PDUItem):
         s += "  Context ID: {0:d}\n".format(self.presentation_context_id)
         s += "  Result/Reason: {0!s}\n".format(self.result_str)
 
-        item_str = '{0!s}'.format(self.transfer_syntax.name)
-        s += '  +  {0!s}\n'.format(item_str)
+        if self.transfer_syntax:
+            item_str = '{0!s}'.format(self.transfer_syntax.name)
+            s += '  +  {0!s}\n'.format(item_str)
 
         return s
 
@@ -979,6 +980,20 @@ class PresentationContextItemAC(PDUItem):
 
         return None
 
+    def _wrap_generate_items(self, bytestream):
+        """Return a list of decoded PDU items generated from `bytestream`."""
+        item_list = []
+        for item_type, item_bytes in self._generate_items(bytestream):
+            item = PDU_ITEM_TYPES[item_type]()
+            # Transfer Syntax items shall not have their value tested if
+            #   not accepted
+            if item_type == 0x40 and self.result != 0x00:
+                item._skip_validation = True
+            item.decode(item_bytes)
+            item_list.append(item)
+
+        return item_list
+
 
 class UserInformationItem(PDUItem):
     """A User Information Item.
@@ -1492,6 +1507,8 @@ class TransferSyntaxSubItem(PDUItem):
 
     def __init__(self):
         """Initialise a new Abstract Syntax Item."""
+        # Should not be validated if Presentation Context was rejected
+        self._skip_validation = False
         self.transfer_syntax_name = None
 
     @property
@@ -1547,8 +1564,10 @@ class TransferSyntaxSubItem(PDUItem):
         s = "Transfer syntax sub item\n"
         s += "  Item type: 0x{0:02x}\n".format(self.item_type)
         s += "  Item length: {0:d} bytes\n".format(self.item_length)
-        s += '  Transfer syntax name: ={0!s}\n'.format(
-            self.transfer_syntax_name.name)
+        if self.transfer_syntax_name:
+            s += '  Transfer syntax name: ={0!s}\n'.format(
+                self.transfer_syntax_name.name
+            )
 
         return s
 
@@ -1584,6 +1603,10 @@ class TransferSyntaxSubItem(PDUItem):
             raise TypeError('Transfer syntax must be a pydicom.uid.UID, '
                             'bytes or str')
 
+        if self._skip_validation:
+            self._transfer_syntax_name = value or None
+            return
+
         if value is not None and not validate_uid(value):
             LOGGER.error("Transfer Syntax Name is an invalid UID")
             raise ValueError("Transfer Syntax Name is an invalid UID")

diff --git a/pynetdicom/tests/encoded_pdu_items.py b/pynetdicom/tests/encoded_pdu_items.py
index 05c20deaf..0d9148291 100644
--- a/pynetdicom/tests/encoded_pdu_items.py
+++ b/pynetdicom/tests/encoded_pdu_items.py
@@ -282,6 +282,46 @@ a_associate_ac_user = b'\x02\x00\x00\x00\x00\xb8\x00\x01\x00\x00' \
                       b'\x59\x00\x00\x0a\x00\x08\x41\x63\x63\x65' \
                       b'\x70\x74\x65\x64'
 
+
+# Issue 342
+# Called AET: ANY-SCP
+# Calling AET: PYNETDICOM
+# Application Context Name: 1.2.840.10008.3.1.1.1
+# Presentation Context Items:
+#   Presentation Context ID: 1
+#       Abstract Syntax: Verification SOP Class
+#       SCP/SCU Role: Default
+#       Result: Accepted
+#       Transfer Syntax: 1.2.840.10008.1.2.1 Explicit VR Little Endian
+#   Presentation Context ID: 3
+#       Abstract Syntax: Basic Grayscale Print Management Meta SOP Class
+#       SCP/SCU Role: Default
+#       Result: Abstract Syntax Not Supported
+#       Transfer Syntax: None
+# User Information
+#   Max Length Received: 28672
+#   Implementation Class UID: 2.16.840.1
+#   Implementation Version Name: MergeCOM3_390IB2
+# Extended Negotiation
+#   SOP Extended: None
+#   Async Ops: None
+#   User ID: None
+a_associate_ac_zero_ts = (
+    b'\x02\x00\x00\x00\x00\xb6\x00\x01\x00\x00\x41\x4e\x59\x2d\x53\x43'
+    b'\x50\x20\x20\x20\x20\x20\x20\x20\x20\x20\x50\x59\x4e\x45\x54\x44'
+    b'\x49\x43\x4f\x4d\x20\x20\x20\x20\x20\x20\x00\x00\x00\x00\x00\x00'
+    b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
+    b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x15\x31\x2e'
+    b'\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x33\x2e\x31\x2e'
+    b'\x31\x2e\x31\x21\x00\x00\x1b\x01\x00\x00\x00\x40\x00\x00\x13\x31'
+    b'\x2e\x32\x2e\x38\x34\x30\x2e\x31\x30\x30\x30\x38\x2e\x31\x2e\x32'
+    b'\x2e\x31\x21\x00\x00\x08\x03\x00\x03\x00\x40\x00\x00\x00\x50\x00'
+    b'\x00\x2a\x51\x00\x00\x04\x00\x00\x70\x00\x52\x00\x00\x0a\x32\x2e'
+    b'\x31\x36\x2e\x38\x34\x30\x2e\x31\x55\x00\x00\x10\x4d\x65\x72\x67'
+    b'\x65\x43\x4f\x4d\x33\x5f\x33\x39\x30\x49\x42\x32'
+)
+
+
 ############################# A-ASSOCIATE-RJ PDU ###############################
 # Result: Rejected (Permanent)
 # Source: DUL service-user
diff --git a/pynetdicom/tests/test_pdu_items.py b/pynetdicom/tests/test_pdu_items.py
index 1c84825a7..48cdb77ef 100644
--- a/pynetdicom/tests/test_pdu_items.py
+++ b/pynetdicom/tests/test_pdu_items.py
@@ -45,7 +45,7 @@ from .encoded_pdu_items import (
     maximum_length_received, implementation_class_uid,
     implementation_version_name, role_selection, role_selection_odd,
     user_information, extended_negotiation, common_extended_negotiation,
-    p_data_tf
+    p_data_tf, a_associate_ac_zero_ts
 )
 
 LOGGER = logging.getLogger('pynetdicom')
@@ -612,6 +612,28 @@ class TestPresentationContextAC(object):
             item.result_reason = result
             assert item.result_str == _result[result]
 
+    def test_decode_empty(self):
+        """Regression test for #342 (decoding an empty Transfer Syntax Item."""
+        # When result is not accepted, transfer syntax value must not be tested
+        item = PresentationContextItemAC()
+        item.decode(
+            b'\x21\x00\x00\x08\x01\x00\x01\x00'
+            b'\x40\x00\x00\x00'
+        )
+
+        assert item.item_type == 0x21
+        assert item.item_length == 8
+        assert item.result == 1
+        assert len(item) == 12
+        assert item.transfer_syntax is None
+
+        assert "Item length: 8 bytes" in item.__str__()
+
+        item = item.transfer_syntax_sub_item[0]
+        assert item.item_length == 0
+        assert item._skip_validation is True
+        assert item.transfer_syntax_name is None
+
 
 class TestAbstractSyntax(object):
     def setup(self):
@@ -880,6 +902,35 @@ class TestTransferSyntax(object):
         assert len(item) == 9
         assert item.encode() == b'\x40\x00\x00\x05\x31\x2e\x32\x2e\x33'
 
+    def test_decode_empty(self):
+        """Regression test for #342 (decoding an empty Transfer Syntax Item."""
+        pdu = A_ASSOCIATE_AC()
+        pdu.decode(a_associate_ac_zero_ts)
+
+        item = pdu.presentation_context[0]
+        assert item.item_type == 0x21
+        assert item.item_length == 27
+        assert item.result == 0
+        assert len(item) == 31
+        assert item.transfer_syntax == UID('1.2.840.10008.1.2.1')
+
+        item = pdu.presentation_context[1]
+        assert item.item_type == 0x21
+        assert item.item_length == 8
+        assert item.result == 3
+        assert len(item) == 12
+        assert item.transfer_syntax is None
+
+        item = TransferSyntaxSubItem()
+        item._skip_validation = True
+        item.decode(b'\x40\x00\x00\x00')
+        assert item.item_type == 0x40
+        assert item.item_length == 0
+        assert len(item) == 4
+        assert item.transfer_syntax is None
+        assert 'Item length: 0 bytes' in item.__str__()
+        assert 'Transfer syntax name' not in item.__str__()
+
 
 class TestPresentationDataValue(object):
     def test_init(self):

Failure to decode A-ASSOCIATE-AC when transfer syntax length is zero
### Description
When an A-ASSOCIATE-AC response is received that includes a rejected context containing a transfer syntax item of zero length then decoding the PDU fails and the association is aborted.

### Expected behaviour
The PDU should decode successfully.

### Actual behaviour
Decode fails, association is aborted
pynetdicom/tests/test_pdu_items.py::TestPresentationContextAC::test_decode_empty pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_decode_empty
pynetdicom/tests/test_pdu_items.py::TestPDU::test_decode_raises pynetdicom/tests/test_pdu_items.py::TestPDU::test_decoders_raises pynetdicom/tests/test_pdu_items.py::TestPDU::test_equality pynetdicom/tests/test_pdu_items.py::TestPDU::test_encode_raises pynetdicom/tests/test_pdu_items.py::TestPDU::test_encoders_raises pynetdicom/tests/test_pdu_items.py::TestPDU::test_generate_items pynetdicom/tests/test_pdu_items.py::TestPDU::test_generate_items_raises pynetdicom/tests/test_pdu_items.py::TestPDU::test_hash_raises pynetdicom/tests/test_pdu_items.py::TestPDU::test_inequality pynetdicom/tests/test_pdu_items.py::TestPDU::test_item_length_raises pynetdicom/tests/test_pdu_items.py::TestPDU::test_item_type_raises pynetdicom/tests/test_pdu_items.py::TestPDU::test_wrap_bytes pynetdicom/tests/test_pdu_items.py::TestPDU::test_wrap_encode_items pynetdicom/tests/test_pdu_items.py::TestPDU::test_wrap_generate_items pynetdicom/tests/test_pdu_items.py::TestPDU::test_wrap_pack pynetdicom/tests/test_pdu_items.py::TestPDU::test_wrap_uid_bytes pynetdicom/tests/test_pdu_items.py::TestPDU::test_wrap_unpack pynetdicom/tests/test_pdu_items.py::TestPDU::test_wrap_encode_uid pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_init pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_uid_conformance pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_string_output pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_rq_decode pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_ac_decode pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_encode_cycle pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_update pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_properties pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_encode_odd pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_encode_even pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_decode_odd pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_decode_even pynetdicom/tests/test_pdu_items.py::TestApplicationContext::test_decode_padded_odd pynetdicom/tests/test_pdu_items.py::TestPresentationContextRQ::test_init pynetdicom/tests/test_pdu_items.py::TestPresentationContextRQ::test_string_output pynetdicom/tests/test_pdu_items.py::TestPresentationContextRQ::test_decode pynetdicom/tests/test_pdu_items.py::TestPresentationContextRQ::test_encode pynetdicom/tests/test_pdu_items.py::TestPresentationContextRQ::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestPresentationContextRQ::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestPresentationContextAC::test_init pynetdicom/tests/test_pdu_items.py::TestPresentationContextAC::test_string_output pynetdicom/tests/test_pdu_items.py::TestPresentationContextAC::test_decode pynetdicom/tests/test_pdu_items.py::TestPresentationContextAC::test_encode pynetdicom/tests/test_pdu_items.py::TestPresentationContextAC::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestPresentationContextAC::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestPresentationContextAC::test_result_str pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_init pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_uid_conformance pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_string_output pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_decode pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_encode_cycle pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_properies pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_encode_odd pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_encode_even pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_decode_odd pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_decode_even pynetdicom/tests/test_pdu_items.py::TestAbstractSyntax::test_decode_padded_odd pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_init pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_uid_conformance pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_string_output pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_decode pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_encode_cycle pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_properies pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_encode_odd pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_encode_even pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_decode_odd pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_decode_even pynetdicom/tests/test_pdu_items.py::TestTransferSyntax::test_decode_padded_odd pynetdicom/tests/test_pdu_items.py::TestPresentationDataValue::test_init pynetdicom/tests/test_pdu_items.py::TestPresentationDataValue::test_string_output pynetdicom/tests/test_pdu_items.py::TestPresentationDataValue::test_decode pynetdicom/tests/test_pdu_items.py::TestPresentationDataValue::test_encode pynetdicom/tests/test_pdu_items.py::TestPresentationDataValue::test_properies pynetdicom/tests/test_pdu_items.py::TestPresentationDataValue::test_message_control_header_byte pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_init pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_decode pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_encode pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_properties_usr_id pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_properties_ext_neg pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_properties_role pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_properties_async pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_properties_max_pdu pynetdicom/tests/test_pdu_items.py::TestUserInformation::test_properties_implementation pynetdicom/tests/test_pdu_items.py::TestUserInformation_MaximumLength::test_init pynetdicom/tests/test_pdu_items.py::TestUserInformation_MaximumLength::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserInformation_MaximumLength::test_decode pynetdicom/tests/test_pdu_items.py::TestUserInformation_MaximumLength::test_encode pynetdicom/tests/test_pdu_items.py::TestUserInformation_MaximumLength::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_MaximumLength::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_uid_conformance pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_init pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_decode pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_encode pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_properies pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_encode_odd pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_encode_even pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_decode_odd pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_decode_even pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_decode_padded_odd pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationUID::test_no_log_padded pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationVersion::test_init pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationVersion::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationVersion::test_decode pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationVersion::test_encode pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationVersion::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationVersion::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_ImplementationVersion::test_properies pynetdicom/tests/test_pdu_items.py::TestUserInformation_Asynchronous::test_init pynetdicom/tests/test_pdu_items.py::TestUserInformation_Asynchronous::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserInformation_Asynchronous::test_decode pynetdicom/tests/test_pdu_items.py::TestUserInformation_Asynchronous::test_encode pynetdicom/tests/test_pdu_items.py::TestUserInformation_Asynchronous::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_Asynchronous::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_Asynchronous::test_properies pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_uid_conformance pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_init pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_decode pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_encode pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_from_primitive_no_scu pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_properties pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_encode_odd pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_encode_even pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_decode_odd pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_decode_even pynetdicom/tests/test_pdu_items.py::TestUserInformation_RoleSelection::test_decode_padded_odd pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserNoPass::test_init pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserNoPass::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserNoPass::test_decode pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserNoPass::test_encode pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserNoPass::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserNoPass::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserNoPass::test_properies pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserPass::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserPass::test_decode pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserPass::test_encode pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserPass::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserPass::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserIdentityRQ_UserPass::test_properties pynetdicom/tests/test_pdu_items.py::TestUserIdentityAC_UserResponse::test_init pynetdicom/tests/test_pdu_items.py::TestUserIdentityAC_UserResponse::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserIdentityAC_UserResponse::test_decode pynetdicom/tests/test_pdu_items.py::TestUserIdentityAC_UserResponse::test_encode pynetdicom/tests/test_pdu_items.py::TestUserIdentityAC_UserResponse::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserIdentityAC_UserResponse::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserIdentityAC_UserResponse::test_properies pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_uid_conformance pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_init pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_decode pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_encode pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_properties pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_encode_odd pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_encode_even pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_decode_odd pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_decode_even pynetdicom/tests/test_pdu_items.py::TestUserInformation_ExtendedNegotiation::test_decode_padded_odd pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_uid_conformance pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_init pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_string_output pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_decode pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_encode pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_to_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_from_primitive pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_properties pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_generate_items pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_generate_items_raises pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_wrap_generate_items pynetdicom/tests/test_pdu_items.py::TestUserInformation_CommonExtendedNegotiation::test_wrap_list