Testing initialization on invalid WKT.
(self)
| 220 | SpatialReference(s.wkt) |
| 221 | |
| 222 | def test02_bad_wkt(self): |
| 223 | "Testing initialization on invalid WKT." |
| 224 | for bad in bad_srlist: |
| 225 | try: |
| 226 | srs = SpatialReference(bad) |
| 227 | srs.validate() |
| 228 | except (SRSException, GDALException): |
| 229 | pass |
| 230 | else: |
| 231 | self.fail('Should not have initialized on bad WKT "%s"!') |
| 232 | |
| 233 | def test03_get_wkt(self): |
| 234 | "Testing getting the WKT." |
nothing calls this directly
no test coverage detected