mirror of
https://github.com/django/django.git
synced 2025-07-30 08:35:23 +00:00
Added test for django.contrib.gis.gdal.gdal_version().
This commit is contained in:
parent
0352a44dd6
commit
975eb42036
1 changed files with 11 additions and 0 deletions
11
tests/gis_tests/gdal_tests/tests.py
Normal file
11
tests/gis_tests/gdal_tests/tests.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import unittest
|
||||
|
||||
from django.contrib.gis.gdal import GDAL_VERSION, gdal_version
|
||||
|
||||
|
||||
class GDALTest(unittest.TestCase):
|
||||
def test_gdal_version(self):
|
||||
if GDAL_VERSION:
|
||||
self.assertEqual(gdal_version(), ('%s.%s.%s' % GDAL_VERSION).encode())
|
||||
else:
|
||||
self.assertIn(b'.', gdal_version())
|
Loading…
Add table
Add a link
Reference in a new issue