def test_info_shows_id_projection_and_lat_lon(): a = Stop(id='0', x=528504.1342843144, y=182155.7435136598, epsg='epsg:27700') info = a.info() assert a.id in info assert 'epsg:27700' in info assert str(a._round_lat()) in info assert str(a._round_lon()) in info
def test__str__shows_info(): a = Stop(id='0', x=528504.1342843144, y=182155.7435136598, epsg='epsg:27700') assert 'epsg:27700' in a.__str__() assert str(a._round_lat()) in a.__str__() assert str(a._round_lon()) in a.__str__()