docstr: Ensure Error is raised when encoding inf or -inf
docstr_tok: ["Ensure","Error","is","raised","when","encoding","inf","or","-inf"]
code: def test_encode_inf(self):
      """
      Ensure Error is raised when encoding inf or -inf
      """
      self._raises_on_dump(
          {
              "type": "Point",
              "coordinates": (float("inf"), 1.0),
          }
      )
  
      self._raises_on_dump(
          {
              "type": "Point",
              "coordinates": (float("-inf"), 1.0),
          }
      )
  
file_path: geojson/tests/test_strict_json.py
imports: import unittest
  import geojson
label_desc: Use image node_id 2 for calling the StrictJsonTest obj's underlying member method code with example usage: obj.test_encode_inf() without return types