#NEWLINE# @ classmethod #NEWLINE# def _fake_service_get_all_by_binary_nodedown( cls , context , binary ) : #NEWLINE# #INDENT# def _service( host , noupdate_sec ) : #NEWLINE# #INDENT# now = timeutils . utcnow ( ) #NEWLINE# last_seen = ( now - datetime . timedelta ( seconds = noupdate_sec ) ) #NEWLINE# return objects . Service ( host = host , disabled = False , forced_down = False , last_seen_up = last_seen , binary = binary ) #NEWLINE# #UNINDENT# return [ _service ( * fake ) for fake in FAKE_SERVICES ]