#NEWLINE# def test_get_objects_synthetic_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# with mock . patch . object ( obj_db_api , 'get_objects' , side_effect = self . fake_get_objects ) : #NEWLINE# #INDENT# self . assertRaises ( base . exceptions . InvalidInput , self . _test_class . get_objects , self . context , ** { #NEWLINE# #INDENT# synthetic_fields [ 0 ] : 'xxx' , #NEWLINE# #UNINDENT# } )