MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / test_msg_structure_pass

Method test_msg_structure_pass

tests/test_api_utilities.py:13–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11class TestApiUtility(unittest.TestCase):
12
13 def test_msg_structure_pass(self):
14 self.assertEqual(
15 msg_structure("ok", "Hello OWASP"),
16 {
17 "status": "ok",
18 "msg": "Hello OWASP"
19 }
20 )
21
22 def test_msg_structure_fail(self):
23 self.assertNotEqual(

Callers

nothing calls this directly

Calls 1

msg_structureFunction · 0.90

Tested by

no test coverage detected