#NEWLINE# def multidimensionaltimeseries_test( self ) : #NEWLINE# #INDENT# 'Test the initialization of the MultiDimensionalTimeSeries.' #NEWLINE# cur = self . _db . cursor ( ) . execute ( 'SELECT COUNT(*) from TestTable' ) #NEWLINE# nbrOfTuples = cur . fetchall ( ) [ 0 ] [ 0 ] #NEWLINE# cur = self . _db . cursor ( ) . execute ( 'SELECT timestamp, value, junk_one FROM TestTable' ) #NEWLINE# ts = MultiDimensionalTimeSeries ( dimensions = 2 ) #NEWLINE# ts . initialize_from_sql_cursor ( cur ) #NEWLINE# assert ( len ( ts ) == nbrOfTuples )