mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed deepcopy of AreaField and DistanceField.
This commit is contained in:
parent
0c4ac12a7b
commit
0ab1dc0a8b
2 changed files with 17 additions and 0 deletions
15
tests/gis_tests/test_fields.py
Normal file
15
tests/gis_tests/test_fields.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
import copy
|
||||
|
||||
from django.contrib.gis.db.models.sql import AreaField, DistanceField
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
|
||||
class FieldsTests(SimpleTestCase):
|
||||
|
||||
def test_area_field_deepcopy(self):
|
||||
field = AreaField()
|
||||
self.assertEqual(copy.deepcopy(field), field)
|
||||
|
||||
def test_distance_field_deepcopy(self):
|
||||
field = DistanceField()
|
||||
self.assertEqual(copy.deepcopy(field), field)
|
Loading…
Add table
Add a link
Reference in a new issue