#NEWLINE# def test_get_objects_mixed_fields( self ) : #NEWLINE# #INDENT# synthetic_fields = self . _test_class . synthetic_fields #NEWLINE# if ( not synthetic_fields ) : #NEWLINE# #INDENT# self . skipTest ( ( 'No synthetic fields found in test class %r' % self . _test_class ) ) #NEWLINE# #UNINDENT# filters = copy . copy ( self . valid_field_filter ) #NEWLINE# filters [ synthetic_fields [ 0 ] ] = 'xxx' #NEWLINE# with mock . patch . object ( obj_db_api , 'get_objects' , return_value = self . db_objs ) : #NEWLINE# #INDENT# self . assertRaises ( base . exceptions . InvalidInput , self . _test_class . get_objects , self . context , ** filters )