# Path: pycounter/sushi.py
# NS = pycounter.constants.NS
# def get_sushi_stats_raw(
#     wsdl_url,
#     start_date,
#     end_date,
#     requestor_id=None,
#     requestor_email=None,
#     requestor_name=None,
#     customer_reference=None,
#     customer_name=None,
#     report="JR1",
#     release=4,
#     sushi_dump=False,
#     verify=True,
#     **extra_params,
# ):
# def get_status(url: str, release: int) -> str:
# def get_report(*args, **kwargs):
# def ns(namespace, name):
# def raw_to_full(raw_report):
# 
# Path: pycounter/sushiclient.py
# def main(
#     url,
#     report,
#     release,
#     start_date,
#     end_date,
#     requestor_id,
#     requestor_email,
#     requestor_name,
#     customer_name,
#     customer_reference,
#     api_key,
#     format_,
#     output_file,
#     dump,
#     no_ssl_verify,
#     no_delay,
#     status,
# ):


import datetime
import logging
import os
import mock
import pytest
import pycounter.exceptions
from click.testing import CliRunner
from httmock import HTTMock, urlmatch
from pycounter import sushi
from pycounter import sushiclient
    assert data[0] == 0


def test_mj_february(sushi_missing_jan):
    publication = next(iter(sushi_missing_jan))
    first_month_data = next(iter(publication))
    assert first_month_data[0] == datetime.date(2013, 2, 1)


def test_mj_title(sushi_missing_jan):
    publication = next(iter(sushi_missing_jan))
    assert publication.title == "Journal of fake data"


def test_sushi_request():
    """Test making a SUSHI request"""
    with HTTMock(sushi_mock):
        rpt = sushi.get_report(
            "http://www.example.com/Sushi",
            datetime.date(2015, 1, 1),
            datetime.date(2015, 1, 31),
        )
    assert rpt.report_type == "JR1"
    assert rpt.report_version == 4


@mock.patch("pycounter.sushi.logger")
def test_sushi_dump(mock_logger):
    """Test dumping SUSHI response"""
    with HTTMock(sushi_mock):

# Path: pycounter/sushi.py
# NS = pycounter.constants.NS
# def get_sushi_stats_raw(
#     wsdl_url,
#     start_date,
#     end_date,
#     requestor_id=None,
#     requestor_email=None,
#     requestor_name=None,
#     customer_reference=None,
#     customer_name=None,
#     report="JR1",
#     release=4,
#     sushi_dump=False,
#     verify=True,
#     **extra_params,
# ):
# def get_status(url: str, release: int) -> str:
# def get_report(*args, **kwargs):
# def ns(namespace, name):
# def raw_to_full(raw_report):
# 
# Path: pycounter/sushiclient.py
# def main(
#     url,
#     report,
#     release,
#     start_date,
#     end_date,
#     requestor_id,
#     requestor_email,
#     requestor_name,
#     customer_name,
#     customer_reference,
#     api_key,
#     format_,
#     output_file,
#     dump,
#     no_ssl_verify,
#     no_delay,
#     status,
# ):


# Path: pycounter/test/test_sushi.py
import datetime
import logging
import os
import mock
import pytest
import pycounter.exceptions
from click.testing import CliRunner
from httmock import HTTMock, urlmatch
from pycounter import sushi
from pycounter import sushiclient

    assert data[0] == 0


def test_mj_february(sushi_missing_jan):
    publication = next(iter(sushi_missing_jan))
    first_month_data = next(iter(publication))
    assert first_month_data[0] == datetime.date(2013, 2, 1)


def test_mj_title(sushi_missing_jan):
    publication = next(iter(sushi_missing_jan))
    assert publication.title == "Journal of fake data"


def test_sushi_request():
    """Test making a SUSHI request"""
    with HTTMock(sushi_mock):
        rpt = sushi.get_report(
            "http://www.example.com/Sushi",
            datetime.date(2015, 1, 1),
            datetime.date(2015, 1, 31),
        )
    assert rpt.report_type == "JR1"
    assert rpt.report_version == 4


@mock.patch("pycounter.sushi.logger")
def test_sushi_dump(mock_logger):
    """Test dumping SUSHI response"""
    with HTTMock(sushi_mock):

        sushi.get_report(