#NEWLINE# def test_host_visible_name_is_not_updated_if_host_does_not_exist( self ) : #NEWLINE# #INDENT# self . api . host . get = Mock ( return_value = [ ] ) #NEWLINE# self . zabbix_client . update_host_visible_name ( 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' : self , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( self . api . host . update . called , 'Host visible name should not have been updated' )