def test_subscript(self):
	# Test subscripting
	width = 3
	length = 40
	src, dst = self.makegraph(width, length)
	p = self.shpaths(dst, src)
	np = width**length
	self.aseq(np, p.numpaths)
	#p[0].pp(p.output)
	self.aseq(str(p[0]), '%s'+'[0]'*length)
	self.aseq(str(p[-np]), '%s'+'[0]'*length)
	self.aseq(str(p[width-1]), '%s'+'[0]'*(length-1) + '[%d]'%(width-1))
	self.aseq(str(p[width]), '%s'+'[0]'*(length-2) + '[1][0]')
	self.aseq(str(p[width+1]), '%s'+'[0]'*(length-2) + '[1][1]')
	self.aseq(str(p[np-1]), '%s'+('[%d]'%(width-1))*length)
	self.aseq(str(p[-1]), '%s'+('[%d]'%(1-width))*length)
	self.failUnlessRaises(IndexError, lambda:p[np])
	self.failUnlessRaises(IndexError, lambda:p[-np-1])
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/heapy/test/test_Path.py/PathTestCase.test_subscript/swapped operands of `-`