#NEWLINE# def test_appendindex_index( ) : #NEWLINE# #INDENT# dirname = tempfile . mkdtemp ( ) #NEWLINE# tbl = ( ( 'f0' , 'f1' , 'f2' , 'f3' , 'f4' ) , ( 'AAA' , 12 , 4.3 , True , datetime . datetime . now ( ) ) , ( 'BBB' , 6 , 3.4 , False , datetime . datetime ( 1900 , 1 , 31 ) ) , ( 'CCC' , 42 , 7.8 , True , datetime . datetime ( 2100 , 12 , 25 ) ) ) #NEWLINE# schema = Schema ( f0 = TEXT ( stored = True ) , f1 = NUMERIC ( int , stored = True ) , f2 = NUMERIC ( float , stored = True ) , f3 = BOOLEAN ( stored = True ) , f4 = DATETIME ( stored = True ) ) #NEWLINE# index = create_in ( dirname , schema ) #NEWLINE# totextindex ( tbl , index ) #NEWLINE# appendtextindex ( tbl , index ) #NEWLINE# actual = fromtextindex ( index ) #NEWLINE# expect = ( tbl + tbl [ 1 : ] ) #NEWLINE# ieq ( actual , actual )