def test_3(self):
	# Test that Edges is not included in the shortest path

	iso = self.iso
	dst = []
	shp = iso(dst).shpaths
	del dst
	self.assert_('Edges' not in str( shp.avoided(0) ))
	#print shp.avoided(0)

	dst = []

	src = [dst]

	shp = iso(dst).get_shpaths(iso(src))

	src[0] = shp
		      
	dst = iso(dst)
	src = iso(src)

	self.assert_( dst.get_shpaths(src).numpaths == 0)

	# Test the sets attribute

	dst = []
	src = [dst]
	dst = iso(dst)
	src = iso(src)
	self.aseq( dst.get_shpaths(src).sets, (src, dst))

	# Test that srs doesn't disturb the path calculation

	class C:
	    pass

	c = C()
	cd = iso(c.__dict__)

	p = cd.shpaths
	repr(p)

	del c
	q = cd.shpaths
	self.aseq( repr(q).strip(), "")

	del p, q

	# Test that internals of ShortestPath are hidden in general
	# (via hiding_env), to consistent result when used interactively,
	# as commented on in notes.txt per Nov 30 2004.

	dst = []
	src = [[[[dst]]]]

	d = iso(dst)
	s = iso(src)

	p = d.get_shpaths(s)
	self.aseq( str(p), " 0: Src[0][0][0][0]")
	src.append(p)
	p._XX_ = dst	# A shorter path, but it should be hidden
	self.aseq( str(d.get_shpaths(s)), " 0: Src[0][0][0][0]")
	
	# Test what .more prints finally

	self.aseq( str(p.more), '<No more paths>')

	# Test that .top is idempotent

	self.asis(p.more.top.top, p)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/heapy/test/test_Path.py/NewTestCase.test_3/original