# Path: netvisor/exc.py
# class InvalidData(NetvisorError):
#     pass
# 
# Path: tests/utils.py
# def get_request_content(filename):
#     filename = os.path.join(get_requests_dir(), filename)
#     return read_file(filename)
# 
# def get_response_content(filename):
#     filename = os.path.join(get_responses_dir(), filename)
#     return read_file(filename)


import decimal
import pytest
from marshmallow import ValidationError
from netvisor.exc import InvalidData
from ..utils import get_request_content, get_response_content
            'customer_finvoice_details': {
                'finvoice_address': None,
                'finvoice_router_code': None,
            },
            'customer_delivery_details': {
                'delivery_name': None,
                'delivery_street_address': None,
                'delivery_post_number': None,
                'delivery_city': None,
            },
            'customer_contact_details': {
                'contact_person': None,
                'contact_person_email': None,
                'contact_person_phone': None,
            },
            'customer_additional_information': {
                'comment': None,
                'reference_number': None,
                'balance_limit': None,
            }
        }

    def test_get_raises_error_if_customer_not_found(self, netvisor, responses):
        responses.add(
            method='GET',
            url='http://koulutus.netvisor.fi/GetCustomer.nv?id=123',
            body=get_response_content('GetCustomerNotFound.xml'),
            content_type='text/html; charset=utf-8',
            match_querystring=True
        )

# Path: netvisor/exc.py
# class InvalidData(NetvisorError):
#     pass
# 
# Path: tests/utils.py
# def get_request_content(filename):
#     filename = os.path.join(get_requests_dir(), filename)
#     return read_file(filename)
# 
# def get_response_content(filename):
#     filename = os.path.join(get_responses_dir(), filename)
#     return read_file(filename)


# Path: tests/services/test_customer.py
import decimal
import pytest
from marshmallow import ValidationError
from netvisor.exc import InvalidData
from ..utils import get_request_content, get_response_content

            'customer_finvoice_details': {
                'finvoice_address': None,
                'finvoice_router_code': None,
            },
            'customer_delivery_details': {
                'delivery_name': None,
                'delivery_street_address': None,
                'delivery_post_number': None,
                'delivery_city': None,
            },
            'customer_contact_details': {
                'contact_person': None,
                'contact_person_email': None,
                'contact_person_phone': None,
            },
            'customer_additional_information': {
                'comment': None,
                'reference_number': None,
                'balance_limit': None,
            }
        }

    def test_get_raises_error_if_customer_not_found(self, netvisor, responses):
        responses.add(
            method='GET',
            url='http://koulutus.netvisor.fi/GetCustomer.nv?id=123',
            body=get_response_content('GetCustomerNotFound.xml'),
            content_type='text/html; charset=utf-8',
            match_querystring=True
        )

        with pytest.raises(InvalidData) as excinfo: