MCPcopy Create free account
hub / github.com/ipython/ipython / test_geojson

Function test_geojson

IPython/core/tests/test_display.py:45–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def test_geojson():
46
47 gj = display.GeoJSON(data={
48 "type": "Feature",
49 "geometry": {
50 "type": "Point",
51 "coordinates": [-81.327, 296.038]
52 },
53 "properties": {
54 "name": "Inca City"
55 }
56 },
57 url_template="http://s3-eu-west-1.amazonaws.com/whereonmars.cartodb.net/{basemap_id}/{z}/{x}/{y}.png",
58 layer_options={
59 "basemap_id": "celestia_mars-shaded-16k_global",
60 "attribution": "Celestia/praesepe",
61 "minZoom": 0,
62 "maxZoom": 18,
63 })
64 nt.assert_equal(u'<IPython.core.display.GeoJSON object>', str(gj))
65
66def test_retina_png():
67 here = os.path.dirname(__file__)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected