def test_decode_inf(self):
        """
        Ensure Error is raised when decoding Infinity or -Infinity
        """
        self._raises_on_load(
            '{"type": "Point", "coordinates": [1.0, Infinity]}')

        self._raises_on_load(
            '{"type": "Point", "coordinates": [1.0, -Infinity]}')

        Ensure Error is raised when decoding Infinity or -Infinity
        
tests/test_strict_json.py