# Path: hgvs/exceptions.py
# class HGVSError(Exception):
#     pass
# 
# class HGVSInvalidVariantError(HGVSError):
#     """Exception raised when variant is inconsistent or invalid"""
#     pass


import os
import unittest
import pytest
import hgvs.dataproviders.uta
import hgvs.parser
import hgvs.variantmapper
from hgvs.exceptions import HGVSError, HGVSInvalidVariantError
from support import CACHE
        cls.hdp = hgvs.dataproviders.uta.connect(
            mode=os.environ.get("HGVS_CACHE_MODE", "run"), cache=CACHE)
        cls.vm = hgvs.variantmapper.VariantMapper(cls.hdp)
        cls.hp = hgvs.parser.Parser()

    def test_gcrp_invalid_input_type(self):
        hgvs_g = "NC_000007.13:g.36561662C>T"
        hgvs_c = "NM_001637.3:c.1582G>A"

        var_g = self.hp.parse_hgvs_variant(hgvs_g)
        var_c = self.hp.parse_hgvs_variant(hgvs_c)

        cases = {
            "gc": (self.vm.g_to_c, (var_c, "NM_001637.3")),
            "gr": (self.vm.g_to_n, (var_c, "NM_001637.3")),
            "gt": (self.vm.g_to_t, (var_c, "NM_001637.3")),
            "rg": (self.vm.n_to_g, (var_c, "NM_001637.3")),
            "cg": (self.vm.c_to_g, (var_g, "NM_001637.3")),
            "tg": (self.vm.t_to_g, (var_g, "NM_001637.3")),
            "cr": (self.vm.c_to_n, (var_g, )),
            "rc": (self.vm.n_to_c, (var_g, )),
            "cp": (self.vm.c_to_p, (var_g, None)),
        }

        failures = []
        for key in cases:
            try:
                func, args = cases[key]
                var_result = func(*args)
                failures.append(key)

# Path: hgvs/exceptions.py
# class HGVSError(Exception):
#     pass
# 
# class HGVSInvalidVariantError(HGVSError):
#     """Exception raised when variant is inconsistent or invalid"""
#     pass


# Path: tests/test_hgvs_variantmapper.py
import os
import unittest
import pytest
import hgvs.dataproviders.uta
import hgvs.parser
import hgvs.variantmapper
from hgvs.exceptions import HGVSError, HGVSInvalidVariantError
from support import CACHE

        cls.hdp = hgvs.dataproviders.uta.connect(
            mode=os.environ.get("HGVS_CACHE_MODE", "run"), cache=CACHE)
        cls.vm = hgvs.variantmapper.VariantMapper(cls.hdp)
        cls.hp = hgvs.parser.Parser()

    def test_gcrp_invalid_input_type(self):
        hgvs_g = "NC_000007.13:g.36561662C>T"
        hgvs_c = "NM_001637.3:c.1582G>A"

        var_g = self.hp.parse_hgvs_variant(hgvs_g)
        var_c = self.hp.parse_hgvs_variant(hgvs_c)

        cases = {
            "gc": (self.vm.g_to_c, (var_c, "NM_001637.3")),
            "gr": (self.vm.g_to_n, (var_c, "NM_001637.3")),
            "gt": (self.vm.g_to_t, (var_c, "NM_001637.3")),
            "rg": (self.vm.n_to_g, (var_c, "NM_001637.3")),
            "cg": (self.vm.c_to_g, (var_g, "NM_001637.3")),
            "tg": (self.vm.t_to_g, (var_g, "NM_001637.3")),
            "cr": (self.vm.c_to_n, (var_g, )),
            "rc": (self.vm.n_to_c, (var_g, )),
            "cp": (self.vm.c_to_p, (var_g, None)),
        }

        failures = []
        for key in cases:
            try:
                func, args = cases[key]
                var_result = func(*args)
                failures.append(key)

            except hgvs.exceptions.HGVSInvalidVariantError: