# Path: incf/countryutils/transformations.py
# def is_string_type(obj):
# def ccn_to_ccn(code):
# def ccn_to_cca2(code):
# def ccn_to_cca3(code):
# def ccn_to_cn(code):
# def ccn_to_con(code):
# def cn_to_ccn(code):
# def cca2_to_ccn(code):
# def cca3_to_ccn(code):
# def ccn_to_ctca2(code):
# def ctca2_to_ccn(code):
# def ccn_to_ctn(code):
# def cca_to_ccn(code):
# def cca_to_cn(code):
# def cc_to_ccn(code):
# def cc_to_cn(code):
# def cc_to_con(code):
# def cca_to_con(code):
# def cca_to_ctn(code):
# def cca_to_ctca2(code):
# def cn_to_ctca2(code):
# def cn_to_ctn(code):


import doctest
import unittest
from incf.countryutils import transformations



class IsStringTestCase(unittest.TestCase):

    def test_string(self):
        self.assertTrue(transformations.is_string_type(''))

    def test_not_a_string(self):
        self.assertFalse(transformations.is_string_type(42))


class CcaToCcnTestCase(unittest.TestCase):

    def test_should_raise_due_to_invalid_key(self):
        with self.assertRaises(KeyError):

# Path: incf/countryutils/transformations.py
# def is_string_type(obj):
# def ccn_to_ccn(code):
# def ccn_to_cca2(code):
# def ccn_to_cca3(code):
# def ccn_to_cn(code):
# def ccn_to_con(code):
# def cn_to_ccn(code):
# def cca2_to_ccn(code):
# def cca3_to_ccn(code):
# def ccn_to_ctca2(code):
# def ctca2_to_ccn(code):
# def ccn_to_ctn(code):
# def cca_to_ccn(code):
# def cca_to_cn(code):
# def cc_to_ccn(code):
# def cc_to_cn(code):
# def cc_to_con(code):
# def cca_to_con(code):
# def cca_to_ctn(code):
# def cca_to_ctca2(code):
# def cn_to_ctca2(code):
# def cn_to_ctn(code):


# Path: incf/countryutils/tests.py
import doctest
import unittest
from incf.countryutils import transformations




class IsStringTestCase(unittest.TestCase):

    def test_string(self):
        self.assertTrue(transformations.is_string_type(''))

    def test_not_a_string(self):
        self.assertFalse(transformations.is_string_type(42))


class CcaToCcnTestCase(unittest.TestCase):

    def test_should_raise_due_to_invalid_key(self):
        with self.assertRaises(KeyError):

            transformations.cca_to_ccn('error')