added a new test for empty polygon
@@ -8,6 +8,10 @@ class MappingTestCase(unittest.TestCase):
self.assertEqual(m['type'], 'Point')
self.assertEqual(m['coordinates'], (0.0, 0.0))
+ def test_empty_polygon():
+ """Empty polygons will round trip without error"""
+ self.assertIsNotNone(mapping(Polygon()))
+
def test_suite():
return unittest.TestLoader().loadTestsFromTestCase(MappingTestCase)
