#NEWLINE# def test_by_ids_some_objects_valid_filter( self ) : #NEWLINE# #INDENT# a = self . Artist . create ( ) #NEWLINE# self . Artist . create ( ) #NEWLINE# objs = self . Artist . filter ( [ a [ 'id' ] ] ) #NEWLINE# assert ( len ( objs ) == 1 ) #NEWLINE# assert isinstance ( objs [ 0 ] , a . Artist ) #NEWLINE# assert ( objs [ 0 ] [ 'id' ] == a [ 'id' ] )