コード例 #1
0
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),
    ])
コード例 #2
0
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")
コード例 #3
0
def active(args):
    active_tombstones()