# Path: hgvs/exceptions.py
# class HGVSError(Exception):
#     pass
# 
# class HGVSUnsupportedOperationError(HGVSError):
#     pass
# 
# Path: hgvs/enums.py



import unittest
import pytest
import hgvs.location
import hgvs.parser
from hgvs.exceptions import HGVSError, HGVSUnsupportedOperationError
from hgvs.enums import Datum
            self.assertEqual(hgvs.location.SimplePosition(-1), "SHOULD FAIL")

    def test_simple_subtraction(self):
        self.assertEqual(hgvs.location.SimplePosition(5) - hgvs.location.SimplePosition(3), 2)

    def test_simple_comparision(self):
        var = self.hp.parse_hgvs_variant("NC_000007.13:g.36561662_36561683del")
        self.assertFalse(var.posedit.pos.start == var.posedit.pos.end)
        self.assertTrue(var.posedit.pos.start < var.posedit.pos.end)
        self.assertTrue(var.posedit.pos.start <= var.posedit.pos.end)
        self.assertFalse(var.posedit.pos.start > var.posedit.pos.end)
        self.assertFalse(var.posedit.pos.start >= var.posedit.pos.end)

        var = self.hp.parse_hgvs_variant("NC_000007.13:g.36561662C>T")
        self.assertTrue(var.posedit.pos.start == var.posedit.pos.end)
        self.assertFalse(var.posedit.pos.start < var.posedit.pos.end)
        self.assertTrue(var.posedit.pos.start <= var.posedit.pos.end)
        self.assertFalse(var.posedit.pos.start > var.posedit.pos.end)
        self.assertTrue(var.posedit.pos.start >= var.posedit.pos.end)


@pytest.mark.quick
class Test_BaseOffsetPosition(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        cls.hp = hgvs.parser.Parser()

    def test_success(self):
        # r.5
        cdsp = hgvs.location.BaseOffsetPosition(5)

# Path: hgvs/exceptions.py
# class HGVSError(Exception):
#     pass
# 
# class HGVSUnsupportedOperationError(HGVSError):
#     pass
# 
# Path: hgvs/enums.py



# Path: tests/test_hgvs_location.py
import unittest
import pytest
import hgvs.location
import hgvs.parser
from hgvs.exceptions import HGVSError, HGVSUnsupportedOperationError
from hgvs.enums import Datum

            self.assertEqual(hgvs.location.SimplePosition(-1), "SHOULD FAIL")

    def test_simple_subtraction(self):
        self.assertEqual(hgvs.location.SimplePosition(5) - hgvs.location.SimplePosition(3), 2)

    def test_simple_comparision(self):
        var = self.hp.parse_hgvs_variant("NC_000007.13:g.36561662_36561683del")
        self.assertFalse(var.posedit.pos.start == var.posedit.pos.end)
        self.assertTrue(var.posedit.pos.start < var.posedit.pos.end)
        self.assertTrue(var.posedit.pos.start <= var.posedit.pos.end)
        self.assertFalse(var.posedit.pos.start > var.posedit.pos.end)
        self.assertFalse(var.posedit.pos.start >= var.posedit.pos.end)

        var = self.hp.parse_hgvs_variant("NC_000007.13:g.36561662C>T")
        self.assertTrue(var.posedit.pos.start == var.posedit.pos.end)
        self.assertFalse(var.posedit.pos.start < var.posedit.pos.end)
        self.assertTrue(var.posedit.pos.start <= var.posedit.pos.end)
        self.assertFalse(var.posedit.pos.start > var.posedit.pos.end)
        self.assertTrue(var.posedit.pos.start >= var.posedit.pos.end)


@pytest.mark.quick
class Test_BaseOffsetPosition(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        cls.hp = hgvs.parser.Parser()

    def test_success(self):
        # r.5
        cdsp = hgvs.location.BaseOffsetPosition(5)

        self.assertEqual(cdsp.datum, Datum.SEQ_START)