Tests of the feature protocol embedded in an arbitrary text document
====================================================================
    >>> import geojson

    >>> d = {"blog": {"posts": [{"atom:summary": "post 1", "type": "atom:item", "atom:description": "i love blogging"}, {"atom:summary": "post 2 from CA", "type": "atom:item", "location": {"type": "Point", "coordinates": [-120.2138, 40.1231]}, "atom:description": "geoblogging in California"}], "location": {"type": "Polygon", "coordinates": [[[-121.5627, 39.8173], [-119.5221, 39.8173], [-119.1232, 41.1231], [-121.5632, 41.3321], [-121.2156, 39.8103]]]}}}

    Encoding

    >>> text = geojson.dumps(d, sort_keys=True)
    >>> text  # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE 
    '{"blog": {"location": {"coordinates": [[[-121..., 39...], [-119..., 39...], [-119..., 41...], [-121..., 41...], [-121..., 39...]]], "type": "Polygon"}, "posts": [{"atom:description": "i love blogging", "atom:summary": "post 1", "type": "atom:item"}, {"atom:description": "geoblogging in California", "atom:summary": "post 2 from CA", "location": {"coordinates": [-120..., 40...], "type": "Point"}, "type": "atom:item"}]}}'

   Decoding

   >>> o = geojson.loads(text)
   >>> isinstance(o, dict)
   True

   >>> geojson.dumps(o, sort_keys=True)# doctest: +ELLIPSIS 
   '{"blog": {"location": {"coordinates": [[[-121..., 39...], [-119..., 39...], [-119..., 41...], [-121..., 41...], [-121..., 39...]]], "type": "Polygon"}, "posts": [{"atom:description": "i love blogging", "atom:summary": "post 1", "type": "atom:item"}, {"atom:description": "geoblogging in California", "atom:summary": "post 2 from CA", "location": {"coordinates": [-120..., 40...], "type": "Point"}, "type": "atom:item"}]}}'

