Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
shapely / tests / legacy / test_singularity.py
Size: Mime:
import unittest

from shapely.geometry import Polygon


class PolygonTestCase(unittest.TestCase):
    def test_polygon_3(self):
        p = (1.0, 1.0)
        poly = Polygon([p, p, p])
        assert poly.bounds == (1.0, 1.0, 1.0, 1.0)

    def test_polygon_5(self):
        p = (1.0, 1.0)
        poly = Polygon([p, p, p, p, p])
        assert poly.bounds == (1.0, 1.0, 1.0, 1.0)