#NEWLINE# def test_delete_host_deletes_host_if_it_exists( self ) : #NEWLINE# #INDENT# self . zabbix_client . delete_host ( self . instance ) #NEWLINE# expected_host_name = self . zabbix_client . get_host_name ( self . instance ) #NEWLINE# self . api . host . get . assert_called_once_with ( filter = { #NEWLINE# #INDENT# 'host' : expected_host_name , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . api . host . delete . assert_called_once_with ( 1 )