# 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
                'fax_number': u'05 123456',
                'email': u'matti.meikalainen@firma.fi',
                'email_invoicing_address': u'maija.meikalainen@firma.fi',
                'home_page_uri': u'www.firma.fi',
                'is_active': True,
            },
            'customer_finvoice_details': {
                'finvoice_address': u'FI109700021497',
                'finvoice_router_code':  'NDEAFIHH'
            },
            'customer_delivery_details': {
                'delivery_name': u'Maija Mehiläinen',
                'delivery_street_address': u'Pajukuja 2',
                'delivery_city': u'Lappeenranta',
                'delivery_post_number': u'53900',
                'delivery_country': u'FI',
            },
            'customer_contact_details': {
                'contact_person': u'Matti Meikäläinen',
                'contact_person_email': u'matti.meikalainen@firma.fi',
                'contact_person_phone': u'040 987 254',
            },
            'customer_additional_information': {
                'comment': u'Kommentti',
                'customer_reference_number': u'1070',
                'invoicing_language': u'FI',
            }
        })
        request = responses.calls[0].request
        assert netvisor_id == 8

# 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

                'fax_number': u'05 123456',
                'email': u'matti.meikalainen@firma.fi',
                'email_invoicing_address': u'maija.meikalainen@firma.fi',
                'home_page_uri': u'www.firma.fi',
                'is_active': True,
            },
            'customer_finvoice_details': {
                'finvoice_address': u'FI109700021497',
                'finvoice_router_code':  'NDEAFIHH'
            },
            'customer_delivery_details': {
                'delivery_name': u'Maija Mehiläinen',
                'delivery_street_address': u'Pajukuja 2',
                'delivery_city': u'Lappeenranta',
                'delivery_post_number': u'53900',
                'delivery_country': u'FI',
            },
            'customer_contact_details': {
                'contact_person': u'Matti Meikäläinen',
                'contact_person_email': u'matti.meikalainen@firma.fi',
                'contact_person_phone': u'040 987 254',
            },
            'customer_additional_information': {
                'comment': u'Kommentti',
                'customer_reference_number': u'1070',
                'invoicing_language': u'FI',
            }
        })
        request = responses.calls[0].request
        assert netvisor_id == 8

        assert request.body == get_request_content('Customer.xml')