diff --git a/trytond-gis/trytond_gis/tests/test_fields.py b/trytond-gis/trytond_gis/tests/test_fields.py index c2425878b6..feca21b9c7 100644 --- a/trytond-gis/trytond_gis/tests/test_fields.py +++ b/trytond-gis/trytond_gis/tests/test_fields.py @@ -14,6 +14,17 @@ class TestGeographicFields(unittest.TestCase): def setUpClass(cls): activate_module('tests') + @with_transaction() + def test_fields_get(self): + "Test fields_get" + pool = Pool() + + GISPoint = pool.get('test.gis.point') + + self.assertDictContainsSubset( + {'dimension': 2, 'geometry_type': 'POINT'}, + GISPoint.fields_get(['point'])['point']) + @with_transaction() def test_create_save(self): "Testing create/write with GIS types"