@@ -0,0 +1,800 @@
+from math import pi%0A%0Aimport pytest%0A%0Afrom shapely.geometry import LineString, Point%0Afrom shapely.wkt import dumps%0A%0A%0A@pytest.fixture(scope=%22module%22)%0Adef pipi():%0A    return Point((pi, -pi))%0A%0A%0A@pytest.fixture(scope=%22module%22)%0Adef pipi4():%0A    return Point((pi*4, -pi*4))%0A%0A%0Adef test_wkt(pipi):%0A    %22%22%22.wkt and wkt.dumps() both do not trim by default.%22%22%22%0A    assert pipi.wkt == %22POINT (%7B0:.16f%7D %7B1:.16f%7D)%22.format(pi, -pi)%0A%0A%0Adef test_wkt(pipi4):%0A    %22%22%22.wkt and wkt.dumps() both do not trim by default.%22%22%22%0A    assert pipi4.wkt == %22POINT (%7B0:.16f%7D %7B1:.16f%7D)%22.format(pi*4, -pi*4)%0A%0A%0Adef test_dumps(pipi4):%0A    assert dumps(pipi4) == %22POINT (%7B0:.16f%7D %7B1:.16f%7D)%22.format(pi*4, -pi*4)%0A%0A%0Adef test_dumps_precision(pipi4):%0A    assert dumps(pipi4, rounding_precision=4) == %22POINT (%7B0:.4f%7D %7B1:.4f%7D)%22.format(pi*4, -pi*4)%0A

Test that .wkt and wkt.dumps produce same results