Skip to content
Permalink
Browse files

Some more little tests for test friday.

  • Loading branch information
timlinux committed Aug 10, 2012
1 parent c65df29 commit 86abc7539bfe9d79fb185cf9c0d991372b0ad2c6
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/src/python/test_qgsgeometry.py
@@ -30,6 +30,12 @@ def testFromLine(self):
(QGis.WKBLineString, myLine.type()))
assert myLine.wkbType() == QGis.WKBLineString, myMessage

def testFromPolygon(self):
myPolygon = QgsGeometry.fromPolygon([[QgsPoint(1, 1), QgsPoint(2, 2), QgsPoint(1, 2), QgsPoint(1, 1)]])
myMessage = ('Expected:\n%s\nGot:\n%s\n' %
(QGis.WKBPolygon, myPolygon.type()))
assert myPolygon.wkbType() == QGis.WKBPolygon, myMessage


if __name__ == '__main__':
unittest.main()

0 comments on commit 86abc75

Please sign in to comment.
You can’t perform that action at this time.