~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to django/contrib/gis/geos/tests/test_io.py

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2013-11-07 15:33:49 UTC
  • mfrom: (1.3.12)
  • Revision ID: package-import@ubuntu.com-20131107153349-e31sc149l2szs3jb
Tags: 1.6-1
* New upstream version. Closes: #557474, #724637.
* python-django now also suggests the installation of ipython,
  bpython, python-django-doc, and libgdal1.
  Closes: #636511, #686333, #704203
* Set package maintainer to Debian Python Modules Team.
* Bump standards version to 3.9.5, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import unittest
5
5
 
6
6
from django.contrib.gis import memoryview
7
 
from django.contrib.gis.geos import GEOSGeometry, WKTReader, WKTWriter, WKBReader, WKBWriter, geos_version_info
8
 
from django.utils import six
9
 
 
10
 
 
 
7
from django.utils.unittest import skipUnless
 
8
 
 
9
from ..import HAS_GEOS
 
10
 
 
11
if HAS_GEOS:
 
12
    from .. import GEOSGeometry, WKTReader, WKTWriter, WKBReader, WKBWriter, geos_version_info
 
13
 
 
14
 
 
15
@skipUnless(HAS_GEOS, "Geos is required.")
11
16
class GEOSIOTest(unittest.TestCase):
12
17
 
13
18
    def test01_wktreader(self):
109
114
            wkb_w.srid = True
110
115
            self.assertEqual(hex3d_srid, wkb_w.write_hex(g))
111
116
            self.assertEqual(wkb3d_srid, wkb_w.write(g))
112
 
 
113
 
def suite():
114
 
    s = unittest.TestSuite()
115
 
    s.addTest(unittest.makeSuite(GEOSIOTest))
116
 
    return s
117
 
 
118
 
def run(verbosity=2):
119
 
    unittest.TextTestRunner(verbosity=verbosity).run(suite())