import unittest

from bluesnap.client import Client


class ClientTestCase(unittest.TestCase):
    DUMMY_CREDENTIALS = {
        'username': 'username',
        'password': 'password',
        'default_store_id': '1',
        'seller_id': '1',
    }

    def setUp(self):
        self.client = Client(env='live', **self.DUMMY_CREDENTIALS)

    def test_env(self):
        self.assertEqual(Client.ENDPOINTS.keys(), ['live', 'sandbox'])

        for env, endpoint_url in Client.ENDPOINTS.iteritems():
            client = Client(env=env, **self.DUMMY_CREDENTIALS)
            self.assertEqual(client.endpoint_url, endpoint_url)

import unittest

from bluesnap.client import Client


class ClientTestCase(unittest.TestCase):
    DUMMY_CREDENTIALS = {
        'username': 'username',
        'password': 'password',
        'default_store_id': '1',
        'seller_id': '1',
        'default_currency': 'GBP'
    }

    def setUp(self):
        self.client = Client(env='live', **self.DUMMY_CREDENTIALS)

    def test_env(self):
        self.assertEqual(Client.ENDPOINTS.keys(), ['live', 'sandbox'])

        for env, endpoint_url in Client.ENDPOINTS.iteritems():
            client = Client(env=env, **self.DUMMY_CREDENTIALS)
            self.assertEqual(client.endpoint_url, endpoint_url)

Send default_currency in Client init on client test
Send default_currency in Client init on client test
