# Path: hgvs/exceptions.py
# 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.validator
from hgvs.exceptions import HGVSInvalidVariantError
from support import CACHE

    @classmethod
    def setUpClass(cls):
        cls.hp = hgvs.parser.Parser()
        cls.validate_int = hgvs.validator.IntrinsicValidator()

    def test_start_lte_end(self):
        """Test if start position is less <= end position"""
        self.assertTrue(
            self.validate_int.validate(self.hp.parse_hgvs_variant("NC_000007.13:g.36561662C>T")))
        self.assertTrue(
            self.validate_int.validate(
                self.hp.parse_hgvs_variant("NC_000007.13:g.36561662_36561663insT")))
        self.assertTrue(
            self.validate_int.validate(self.hp.parse_hgvs_variant("NM_01234.5:c.76_77insT")))
        self.assertTrue(
            self.validate_int.validate(
                self.hp.parse_hgvs_variant("AC_01234.5:c.123+54_123+55insT"), strict=False))
        self.assertTrue(
            self.validate_int.validate(
                self.hp.parse_hgvs_variant("AC_01234.5:c.123+54A>T"), strict=False))
        self.assertTrue(
            self.validate_int.validate(self.hp.parse_hgvs_variant("NC_012920.1:m.54G>C")))
        self.assertTrue(
            self.validate_int.validate(self.hp.parse_hgvs_variant("NC_012920.1:m.57_58insC")))

        with self.assertRaises(HGVSInvalidVariantError):
            self.validate_int.validate(
                self.hp.parse_hgvs_variant("NC_000007.13:g.36561664_36561663A>T"))


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


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


    @classmethod
    def setUpClass(cls):
        cls.hp = hgvs.parser.Parser()
        cls.validate_int = hgvs.validator.IntrinsicValidator()

    def test_start_lte_end(self):
        """Test if start position is less <= end position"""
        self.assertTrue(
            self.validate_int.validate(self.hp.parse_hgvs_variant("NC_000007.13:g.36561662C>T")))
        self.assertTrue(
            self.validate_int.validate(
                self.hp.parse_hgvs_variant("NC_000007.13:g.36561662_36561663insT")))
        self.assertTrue(
            self.validate_int.validate(self.hp.parse_hgvs_variant("NM_01234.5:c.76_77insT")))
        self.assertTrue(
            self.validate_int.validate(
                self.hp.parse_hgvs_variant("AC_01234.5:c.123+54_123+55insT"), strict=False))
        self.assertTrue(
            self.validate_int.validate(
                self.hp.parse_hgvs_variant("AC_01234.5:c.123+54A>T"), strict=False))
        self.assertTrue(
            self.validate_int.validate(self.hp.parse_hgvs_variant("NC_012920.1:m.54G>C")))
        self.assertTrue(
            self.validate_int.validate(self.hp.parse_hgvs_variant("NC_012920.1:m.57_58insC")))

        with self.assertRaises(HGVSInvalidVariantError):
            self.validate_int.validate(
                self.hp.parse_hgvs_variant("NC_000007.13:g.36561664_36561663A>T"))


        with self.assertRaises(HGVSInvalidVariantError):