def test28_geos_version(self):
        from django.contrib.gis.geos.libgeos import version_regex
        versions = [ ('3.0.0rc4-CAPI-1.3.3', '3.0.0'),
                     ('3.0.0-CAPI-1.4.1', '3.0.0'),
                     ('3.4.0dev-CAPI-1.8.0', '3.4.0') ]
        for v, expected in versions:
            m = version_regex.match(v)
            self.assertTrue(m)
            self.assertEqual(m.group('version'), expected)
Testing the GEOS version regular expression.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/gis/geos/tests/test_geos.py/GEOSTest.test28_geos_version