mirror of
https://github.com/django/django.git
synced 2024-11-28 02:27:42 +01:00
16 lines
413 B
Python
16 lines
413 B
Python
|
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)
|