def test_active_tombstones(mock_print, mock_log_entries): mock_log_entries.return_value = { FIRST_LOG_ENTRY.unique_id: FIRST_LOG_ENTRY } active_tombstones() assert mock_print.called mock_print.assert_has_calls([ mock.call("Active tombstones"), mock.call("-----------------"), mock.call(FIRST_LOG_ENTRY), ])
def test_no_active_tombstones(mock_print, mock_log_entries): mock_log_entries.return_value = {} active_tombstones() assert mock_print.called mock_print.assert_called_with("No active tombstones")
def active(args): active_tombstones()