#NEWLINE# @ mock . patch ( 'oslo_utils.timeutils.is_older_than' ) #NEWLINE# def test_shelved_poll_none_exist( self , mock_older ) : #NEWLINE# #INDENT# self . flags ( shelved_offload_time = 1 ) #NEWLINE# mock_older . return_value = False #NEWLINE# with mock . patch . object ( self . compute , 'shelve_offload_instance' ) as soi : #NEWLINE# #INDENT# self . compute . _poll_shelved_instances ( self . context ) #NEWLINE# self . assertFalse ( self . called )