#NEWLINE# @ mock . patch ( 'pika.heartbeat.HeartbeatChecker._send_heartbeat_frame' ) #NEWLINE# def test_send_and_check_send_heartbeat_frame( self , send_heartbeat_frame ) : #NEWLINE# #INDENT# obj = heartbeat . HeartbeatChecker ( self . mock_conn , self . INTERVAL ) #NEWLINE# obj . send_and_check ( ) #NEWLINE# send_heartbeat_frame . assert_called_once_with ( )