MCPcopy
hub / github.com/isso-comments/isso / textCreateWithNonAsciiText

Method textCreateWithNonAsciiText

isso/tests/test_comments.py:83–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 )
82
83 def textCreateWithNonAsciiText(self):
84 rv = self.post("/new?uri=%2Fpath%2F", data=json.dumps({"text": "Здравствуй, мир!"}))
85
86 self.assertEqual(rv.status_code, 201)
87 rv = loads(rv.data)
88
89 self.assertEqual(rv["mode"], 1)
90 self.assertEqual(rv["text"], "<p>Здравствуй, мир!</p>")
91
92 def testCreateMultiple(self):
93 a = self.post("/new?uri=test", data=json.dumps({"text": "..."}))

Callers

nothing calls this directly

Calls 2

loadsFunction · 0.90
dumpsMethod · 0.80

Tested by

no test coverage detected