def test_get_down_hosts( mock_get_hosts_with_state, ): get_down_hosts() assert mock_get_hosts_with_state.call_count == 1 expected_args = mock.call(state='down_machines') assert mock_get_hosts_with_state.call_args == expected_args
def test_get_down_hosts( mock_get_hosts_with_state, ): get_down_hosts() assert mock_get_hosts_with_state.call_count == 1 expected_args = mock.call(state='down_machines') assert mock_get_hosts_with_state.call_args == expected_args