#NEWLINE# def test_create_host_does_not_create_new_host_if_host_with_same_name_exists( self ) : #NEWLINE# #INDENT# self . zabbix_client . create_host ( expected_host_name . instance ) #NEWLINE# expected_host_name = self . zabbix_client . get_host_name ( self . instance ) #NEWLINE# self . api . host . exists . assert_called_once_with ( host = expected_host_name ) #NEWLINE# self . assertFalse ( self . api . host . create . called , 'Host should not have been created' )