<s> from math import pi <EOL> import pytest <EOL> from shapely . geometry import LineString , Point <EOL> from shapely . wkt import dumps <EOL> @ pytest . fixture ( scope = "<STR_LIT>" ) <EOL> def pipi ( ) : <EOL> return Point ( ( pi , - pi ) ) <EOL> @ pytest . fixture ( scope = "<STR_LIT>" ) <EOL> def pipi4 ( ) : <EOL> return Point ( ( pi * <NUM_LIT:4> , - pi * <NUM_LIT:4> ) ) <EOL> def test_wkt ( pipi ) : <EOL> """<STR_LIT>""" <EOL> assert pipi . wkt == "<STR_LIT>" . format ( pi , - pi ) <EOL> def test_wkt ( pipi4 ) : <EOL> """<STR_LIT>""" <EOL> assert pipi4 . wkt == "<STR_LIT>" . format ( pi * <NUM_LIT:4> , - pi * <NUM_LIT:4> ) <EOL> def test_dumps ( pipi4 ) : <EOL> assert dumps ( pipi4 ) == "<STR_LIT>" . format ( pi * <NUM_LIT:4> , - pi * <NUM_LIT:4> ) <EOL> def test_dumps_precision ( pipi4 ) : <EOL> assert dumps ( pipi4 , rounding_precision = <NUM_LIT:4> ) == "<STR_LIT>" . format ( pi * <NUM_LIT:4> , - pi * <NUM_LIT:4> ) </s>
