def test_1(self):
	import sys, __builtin__
	root = self.View.root
	# Interpreter attributes

	rel = str(self.relation(root, sys.modules))

	self.assert_(eval(rel % 'root') is sys.modules)
	self.aseq(rel, '%s.i0_modules')

	rel = str(self.relation(root, sys.__dict__))
	self.assert_(eval(rel % 'root') is sys.__dict__)
	self.aseq(rel, '%s.i0_sysdict')

	rel = str(self.relation(root, __builtin__.__dict__))
	self.assert_(eval(rel % 'root') is __builtin__.__dict__)
	self.aseq(rel, '%s.i0_builtins')

	if sys.version >= "2.3.3": # The version I saw them; they may have come earlier
	    for name in "codec_search_path", "codec_search_cache", "codec_error_registry":
		attr = "i0_%s"%name
		rel = str(self.relation(root, getattr(root, attr)))
		self.aseq(rel, '%%s.%s'%attr)


	# Thread attributes

	try:
	    1/0
	except:
	    exc_type, exc_value, exc_traceback = sys.exc_info()
	    for name in 'exc_type', 'exc_value', 'exc_traceback':
		rel = str(self.relation(root, eval(name)))
		self.asis(eval(rel % 'root') , eval(name))
		
	    # There are more, untested, attributes, but the code is farily regular...
	    # More complication is to do with frames which I concentrate on for now.
		
	    # We need to find out what level we are at - count to lowest frame
	    level = 0
	    frame = exc_traceback.tb_frame
	    #print self.relation(root, frame)
	    #print self.relation(root, exc_type)


	    while frame.f_back:
		frame = frame.f_back
		level += 1
	    rel = str(self.relation(root, frame))
	    self.assert_(rel.endswith('_f0'))
	    rel = str(self.relation(root, exc_traceback.tb_frame))
	    import re
	    self.asis( eval(rel%'root'), exc_traceback.tb_frame)
	    self.assert_(rel.endswith('_f%d'%level))
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/heapy/test/test_Path.py/RootTestCase.test_1/original