(self)
| 520 | ) |
| 521 | |
| 522 | def test_is_counterclockwise(self): |
| 523 | lr = LinearRing((0, 0), (1, 0), (0, 1), (0, 0)) |
| 524 | self.assertIs(lr.is_counterclockwise, True) |
| 525 | lr.reverse() |
| 526 | self.assertIs(lr.is_counterclockwise, False) |
| 527 | msg = "Orientation of an empty LinearRing cannot be determined." |
| 528 | with self.assertRaisesMessage(ValueError, msg): |
| 529 | LinearRing().is_counterclockwise |
| 530 | |
| 531 | def test_is_counterclockwise_geos_error(self): |
| 532 | with mock.patch("django.contrib.gis.geos.prototypes.cs_is_ccw") as mocked: |
nothing calls this directly
no test coverage detected