#NEWLINE# def test_sessions_send_data( ) : #NEWLINE# #INDENT# lgr = CaptureLogger ( ) #NEWLINE# ( bdb , tr ) = make_bdb_with_sessions ( session_logger = lgr ) #NEWLINE# _simple_bql_query ( bdb ) #NEWLINE# tr . send_session_data ( ) #NEWLINE# assert ( 1 == len ( lgr . calls ) ) #NEWLINE# assert ( '_send' == lgr . calls [ 0 ] [ 0 ] ) #NEWLINE# assert ( 'SELECT COUNT(*) FROM bayesdb_session' in str ( lgr . calls [ 0 ] [ 1 ] ) )