'Testing Geometry IndexError'

def test00_GEOSIndexException(self):

    p = Point(1, 2)
    for i in range((-2), 2):
        p._checkindex(i)
    with self.assertRaises(IndexError):
        p._checkindex(2)
    with self.assertRaises(IndexError):
        p._checkindex((-3))
