def test_handle_no_options(self, mock_weekly_roundup, *args): """Test command roundup when live option is False.""" Command().handle(exclude_startswith=None, filter_startswith=None, live=False) assert mock_weekly_roundup.call_count == 0
def test_handle_with_options(self, mock_weekly_roundup, *args): """Test command roundup which various options.""" Command().handle(exclude_startswith='f', filter_startswith='jack', live=True) assert mock_weekly_roundup.call_count == 1 mock_weekly_roundup.assert_called_once_with(['*****@*****.**'])