def test_registry_port_subtype(self):
        descriptor = self.registry.get_descriptor_by_name( \
                            get_vistrails_basic_pkg_id(), 'String')
        ports = self.registry.source_ports_from_descriptor(descriptor)
        assert self.registry.is_port_sub_type(ports[0], ports[0])
Test registry isPortSubType
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/vistrail/port.py/TestPort.test_registry_port_subtype