def test_registered_hiding(self):
	hv = self.hv
	class Set(object):
	    __slots__ = 'some', '_hiding_tag_', 'other'
	    
	class Der(Set):
	    pass

	hv.register__hiding_tag__type(Set)

	# Der is inherited and registration follows its base type.
	
	s = Set()
	d = Der()
	t = Set()
	some = []
	other = []
	dother = []
	s.some = some
	s.other = other
	d.some = some
	d.other = dother
	self.root.append([s, t, d])
	self.root.append(s)
	self.root.append(d)
	self.root.append(t)

	x = hv.heap()
	assert dother in x
	assert some  in x
	assert other in x

	assert s  in x
	assert d  in x
	assert t in x

	s._hiding_tag_ = hv._hiding_tag_
	d._hiding_tag_ = hv._hiding_tag_

	x = hv.heap()
	assert some not in x
	assert other not in x

	assert s not in x
	assert d not in x
	assert t in x

	he = []
	hv._hiding_tag_ = he

	x = hv.heap()
	assert dother in x
	assert some  in x
	assert other in x

	assert s  in x
	assert d  in x
	assert t in x
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/heapy/test/test_heapyc.py/TestHeapView.test_registered_hiding/original