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

« back to all changes in this revision

Viewing changes to django/contrib/gis/tests/geoapp/test_feeds.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
 
5
5
from django.conf import settings
6
6
from django.contrib.sites.models import Site
 
7
from django.contrib.gis.geos import HAS_GEOS
 
8
from django.contrib.gis.tests.utils import HAS_SPATIAL_DB
7
9
from django.test import TestCase
8
 
 
9
 
from .models import City
10
 
 
11
 
 
 
10
from django.utils.unittest import skipUnless
 
11
 
 
12
if HAS_GEOS:
 
13
    from .models import City
 
14
 
 
15
 
 
16
@skipUnless(HAS_GEOS and HAS_SPATIAL_DB, "Geos and spatial db are required.")
12
17
class GeoFeedTest(TestCase):
13
18
 
14
19
    urls = 'django.contrib.gis.tests.geoapp.urls'
22
27
        Site._meta.installed = self.old_Site_meta_installed
23
28
 
24
29
    def assertChildNodes(self, elem, expected):
25
 
        "Taken from regressiontests/syndication/tests.py."
 
30
        "Taken from syndication/tests.py."
26
31
        actual = set([n.nodeName for n in elem.childNodes])
27
32
        expected = set(expected)
28
33
        self.assertEqual(actual, expected)