# Path: mangopay/utils.py
# def timestamp_from_date(date):
#     epoch = datetime.date(1970, 1, 1)
#     diff = date - epoch
#     return diff.days * 24 * 3600 + diff.seconds
# 
# Path: tests/settings.py
#     MANGOPAY_CLIENT_ID = 'sdk-unit-tests'
#     MANGOPAY_APIKEY = 'cqFfFrWfCcb7UadHNxx2C9Lo6Djw8ZduLi7J9USTmu8bhxxpju'
#     MANGOPAY_API_URL = 'https://api.mangopay.com/v2.01/'
#     MANGOPAY_API_SANDBOX_URL = 'https://api.sandbox.mangopay.com/v2.01/'
#     MANGOPAY_USE_SANDBOX = True
#     MANGOPAY_API_VERSION = 2
# MOCK_TESTS_RESPONSES = True


import json
import os
import re
import sys
import unittest
import responses
from datetime import datetime
from mangopay.utils import timestamp_from_date
from tests import settings
                'url': settings.MANGOPAY_API_SANDBOX_URL + settings.MANGOPAY_CLIENT_ID + '/wallets',
                'body': get_fixture('legal_user_wallet_89'),
                'status': 200
            },
            {
                'method': responses.GET,
                'url': settings.MANGOPAY_API_SANDBOX_URL + settings.MANGOPAY_CLIENT_ID + '/wallets/1169421',
                'body': get_fixture('legal_user_wallet_89'),
                'status': 200
            }])

    def mock_legal_user_wallet_99(self):
        self.register_mock([
            {
                'method': responses.POST,
                'url': settings.MANGOPAY_API_SANDBOX_URL + settings.MANGOPAY_CLIENT_ID + '/wallets',
                'body': get_fixture('legal_user_wallet_99'),
                'status': 200
            },
            {
                'method': responses.GET,
                'url': settings.MANGOPAY_API_SANDBOX_URL + settings.MANGOPAY_CLIENT_ID + '/wallets/1169421',
                'body': get_fixture('legal_user_wallet_99'),
                'status': 200
            }])

    def mock_card(self):
        self.register_mock([
            {
                'method': responses.POST,

# Path: mangopay/utils.py
# def timestamp_from_date(date):
#     epoch = datetime.date(1970, 1, 1)
#     diff = date - epoch
#     return diff.days * 24 * 3600 + diff.seconds
# 
# Path: tests/settings.py
#     MANGOPAY_CLIENT_ID = 'sdk-unit-tests'
#     MANGOPAY_APIKEY = 'cqFfFrWfCcb7UadHNxx2C9Lo6Djw8ZduLi7J9USTmu8bhxxpju'
#     MANGOPAY_API_URL = 'https://api.mangopay.com/v2.01/'
#     MANGOPAY_API_SANDBOX_URL = 'https://api.sandbox.mangopay.com/v2.01/'
#     MANGOPAY_USE_SANDBOX = True
#     MANGOPAY_API_VERSION = 2
# MOCK_TESTS_RESPONSES = True


# Path: tests/mocks.py
import json
import os
import re
import sys
import unittest
import responses
from datetime import datetime
from mangopay.utils import timestamp_from_date
from tests import settings

                'url': settings.MANGOPAY_API_SANDBOX_URL + settings.MANGOPAY_CLIENT_ID + '/wallets',
                'body': get_fixture('legal_user_wallet_89'),
                'status': 200
            },
            {
                'method': responses.GET,
                'url': settings.MANGOPAY_API_SANDBOX_URL + settings.MANGOPAY_CLIENT_ID + '/wallets/1169421',
                'body': get_fixture('legal_user_wallet_89'),
                'status': 200
            }])

    def mock_legal_user_wallet_99(self):
        self.register_mock([
            {
                'method': responses.POST,
                'url': settings.MANGOPAY_API_SANDBOX_URL + settings.MANGOPAY_CLIENT_ID + '/wallets',
                'body': get_fixture('legal_user_wallet_99'),
                'status': 200
            },
            {
                'method': responses.GET,
                'url': settings.MANGOPAY_API_SANDBOX_URL + settings.MANGOPAY_CLIENT_ID + '/wallets/1169421',
                'body': get_fixture('legal_user_wallet_99'),
                'status': 200
            }])

    def mock_card(self):
        self.register_mock([
            {
                'method': responses.POST,

                'url': settings.MANGOPAY_API_SANDBOX_URL + settings.MANGOPAY_CLIENT_ID + '/cardregistrations',