def test_LineInfo():
 linfo = LineInfo('  %cd /home')
 nt.assert_equal(str(linfo), 'LineInfo [  |%|cd|/home]')

def test_LineInfo ( ) : linfo = LineInfo ( '  %cd /home' ) nt . assert_equal ( str ( linfo ) , 'LineInfo [  |%|cd|/home]' )
simple test for lineinfo construction and str() .