MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_blob_content

Method test_blob_content

tests/apps/test_host.py:64–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 assert AppHostServer._extract_html(resource) == "<html>OK</html>"
63
64 def test_blob_content(self):
65 html = "<html>blob</html>"
66 b64 = base64.b64encode(html.encode()).decode()
67 resource = {"contents": [{"uri": "ui://test", "blob": b64}]}
68 assert AppHostServer._extract_html(resource) == html
69
70 def test_empty_contents(self):
71 assert AppHostServer._extract_html({"contents": []}) == ""

Callers

nothing calls this directly

Calls 1

_extract_htmlMethod · 0.80

Tested by

no test coverage detected