#NEWLINE# def test_select( self , model_context ) : #NEWLINE# #INDENT# User = model_context [ 'User' ] #NEWLINE# session = model_context [ 'session' ] #NEWLINE# self . users ( User , session ) #NEWLINE# session . commit ( ) #NEWLINE# queryset = session . query ( User ) . filter ( ) #NEWLINE# assert ( len ( queryset ) == 4 ) #NEWLINE# assert ( queryset [ 1 ] . id == 2 )