Skip to content

Commit

Permalink
increase codequality and testcoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Jul 7, 2015
1 parent 0b7da06 commit 481117f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions fastkml/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,10 +927,18 @@ def test_groundoverlay(self):
self.assertEqual(doc.to_string(), doc2.to_string())

def test_linarring_placemark(self):
doc = """<kml xmlns="https://www.opengis.net/kml/2.2">
doc = kml.KML()
doc.from_string( """<kml xmlns="https://www.opengis.net/kml/2.2">
<Placemark>
<kml:coordinates>0.0,0.0 1.0,0.0 1.0,1.0 0.0,0.0</kml:coordinates>
</Placemark> </kml>"""
<LinearRing>
<coordinates>0.0,0.0 1.0,0.0 1.0,1.0 0.0,0.0</coordinates>
</LinearRing>
</Placemark> </kml>""")
doc2 = kml.KML()
doc2.from_string(doc.to_string())
self.assertTrue(
isinstance(list(doc.features())[0].geometry, LinearRing))
self.assertEqual(doc.to_string(), doc2.to_string())


class StyleTestCase(unittest.TestCase):
Expand Down

0 comments on commit 481117f

Please sign in to comment.