#NEWLINE# def test_head_compute( ) : #NEWLINE# #INDENT# tdata = tm . makeMixedDataFrame ( ) #NEWLINE# t = symbol ( 't' , discover ( tdata ) ) #NEWLINE# db = into ( 'sqlite:///:memory:::t' , d , dshape = t . dshape ) #NEWLINE# n = 2 #NEWLINE# d = data ( db ) #NEWLINE# expr = d . head ( n ) #NEWLINE# s = expr_repr ( expr ) #NEWLINE# assert ( '...' not in s ) #NEWLINE# result = s . split ( '\n' ) [ 1 : ] #NEWLINE# assert ( len ( result ) == n )