def testEndPoints(self):
    """Test correct behavior of intersecting point around end points."""
    interval = TestIntervalTree.TestInterval(5, 10)
    tree = IntervalTree([interval])

    self.assertTrue(len(tree.intersectingPoint(4)) == 0)
    self.assertTrue(len(tree.intersectingPoint(5)) == 1)
    self.assertTrue(len(tree.intersectingPoint(6)) == 1)
    self.assertTrue(len(tree.intersectingPoint(9)) == 1)
    self.assertTrue(len(tree.intersectingPoint(10)) == 1)
    self.assertTrue(len(tree.intersectingPoint(11)) == 0)
def testEndPoints ( self ) : interval = TestIntervalTree . TestInterval ( 5 , 10 ) tree = IntervalTree ( [ interval ] ) self . assertTrue ( len ( tree . intersectingPoint ( 4 ) ) == 0 ) self . assertTrue ( len ( tree . intersectingPoint ( 5 ) ) == 1 ) self . assertTrue ( len ( tree . intersectingPoint ( 6 ) ) == 1 ) self . assertTrue ( len ( tree . intersectingPoint ( 9 ) ) == 1 ) self . assertTrue ( len ( tree . intersectingPoint ( 10 ) ) == 1 ) self . assertTrue ( len ( tree . intersectingPoint ( 11 ) ) == 0 )
Test correct behavior of intersecting point around end points.