# Path: hgvs/exceptions.py
# class HGVSError(Exception):
#     pass
# 
# class HGVSUnsupportedOperationError(HGVSError):
#     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.variantmapper
import hgvs.parser
import hgvs.normalizer
from hgvs.exceptions import HGVSError, HGVSUnsupportedOperationError, HGVSInvalidVariantError
from support import CACHE
            str(
                self.norm.normalize(
                    self.hp.parse_hgvs_variant("NC_000009.11:g.36233991_36233992delCAinsTG"))),
            "NC_000009.11:g.36233991_36233992inv")
        with self.assertRaises(HGVSInvalidVariantError):
            self.norm.normalize(
                self.hp.parse_hgvs_variant("NG_032871.1:g.32476_53457delinsAATTAAGGTATA"))

        with self.assertRaises(HGVSInvalidVariantError):
            self.norm.normalize(
                self.hp.parse_hgvs_variant("NG_032871.1:g.32476_53457delinsAATTAAGGTATA"))

    def test_norm_var_near_bound(self):
        """Test normalizing variants near the end or start of transcript"""
        self.assertEqual(
            str(self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.935T>C"))),
            "NM_001001656.1:c.935T>C")
        self.assertEqual(
            str(self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.945G>C"))),
            "NM_001001656.1:c.945G>C")
        self.assertEqual(
            str(self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.945dup"))),
            "NM_001001656.1:c.945dup")
        self.assertEqual(
            str(self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.935_945del"))),
            "NM_001001656.1:c.935_945del")
        with self.assertRaises(HGVSError):
            self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.946G>C"))
        with self.assertRaises(HGVSError):
            self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.946dup"))

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


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

            str(
                self.norm.normalize(
                    self.hp.parse_hgvs_variant("NC_000009.11:g.36233991_36233992delCAinsTG"))),
            "NC_000009.11:g.36233991_36233992inv")
        with self.assertRaises(HGVSInvalidVariantError):
            self.norm.normalize(
                self.hp.parse_hgvs_variant("NG_032871.1:g.32476_53457delinsAATTAAGGTATA"))

        with self.assertRaises(HGVSInvalidVariantError):
            self.norm.normalize(
                self.hp.parse_hgvs_variant("NG_032871.1:g.32476_53457delinsAATTAAGGTATA"))

    def test_norm_var_near_bound(self):
        """Test normalizing variants near the end or start of transcript"""
        self.assertEqual(
            str(self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.935T>C"))),
            "NM_001001656.1:c.935T>C")
        self.assertEqual(
            str(self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.945G>C"))),
            "NM_001001656.1:c.945G>C")
        self.assertEqual(
            str(self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.945dup"))),
            "NM_001001656.1:c.945dup")
        self.assertEqual(
            str(self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.935_945del"))),
            "NM_001001656.1:c.935_945del")
        with self.assertRaises(HGVSError):
            self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.946G>C"))
        with self.assertRaises(HGVSError):
            self.norm.normalize(self.hp.parse_hgvs_variant("NM_001001656.1:c.946dup"))

        with self.assertRaises(HGVSError):