

def test_object_identifier(self):
    if _debug:
        TestObjectIdentifier._debug('test_object_identifier')
    obj = ObjectIdentifier()
    assert (obj.value == ('analogInput', 0))
    with self.assertRaises(TypeError):
        ObjectIdentifier('some string')
    with self.assertRaises(TypeError):
        ObjectIdentifier(1.0)

dataset/ETHPy150Open JoelBender/bacpypes/tests/test_primitive_data/test_object_identifier.py TestObjectIdentifier.test_object_identifier/original