def test_cache():
 cp = compilerop.CachingCompiler()
 ncache = len(linecache.cache)
 cp.cache('x=1')
 nt.assert_true((len(linecache.cache) > ncache))

def test_cache ( ) : cp = compilerop . CachingCompiler ( ) ncache = len ( linecache . cache ) cp . cache ( 'x=1' ) nt . assert_true ( ( len ( linecache . cache ) > ncache ) )
test the compiler correctly compiles and caches inputs .