Exemplo n.º 1
0
 def test_deconstruct_values(self):
     field = GeometryField(
         srid=4067,
         dim=3,
         geography=True,
         extent=(50199.4814, 6582464.0358, -50000.0, 761274.6247,
                 7799839.8902, 50000.0),
         tolerance=0.01,
     )
     *_, kwargs = field.deconstruct()
     self.assertEqual(
         kwargs, {
             'srid':
             4067,
             'dim':
             3,
             'geography':
             True,
             'extent': (50199.4814, 6582464.0358, -50000.0, 761274.6247,
                        7799839.8902, 50000.0),
             'tolerance':
             0.01,
         })
Exemplo n.º 2
0
 def test_deconstruct_values(self):
     field = GeometryField(
         srid=4067,
         dim=3,
         geography=True,
         extent=(
             50199.4814,
             6582464.0358,
             -50000.0,
             761274.6247,
             7799839.8902,
             50000.0,
         ),
         tolerance=0.01,
     )
     *_, kwargs = field.deconstruct()
     self.assertEqual(
         kwargs,
         {
             "srid":
             4067,
             "dim":
             3,
             "geography":
             True,
             "extent": (
                 50199.4814,
                 6582464.0358,
                 -50000.0,
                 761274.6247,
                 7799839.8902,
                 50000.0,
             ),
             "tolerance":
             0.01,
         },
     )
Exemplo n.º 3
0
 def test_deconstruct_empty(self):
     field = GeometryField()
     *_, kwargs = field.deconstruct()
     self.assertEqual(kwargs, {'srid': 4326})