MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / test_basic

Method test_basic

tests/scripts/test_frame_parsers.py:866–870  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

864 SCRIPT = "url_encoded.js"
865
866 def test_basic(self):
867 result = run_parser(self.SCRIPT, "temperature=25.5&humidity=60&pressure=1013")
868 assert result[0] == approx(25.5)
869 assert result[1] == 60
870 assert result[2] == 1013
871
872 def test_percent_encoding(self):
873 result = run_parser(self.SCRIPT, "temperature=25%2E5")

Callers

nothing calls this directly

Calls 2

run_parserFunction · 0.85
approxFunction · 0.85

Tested by

no test coverage detected