def METHOD_NAME(self):
    self.folder.invokeFactory("Document", id="doc", text=RichTextValue("data"))
    self.assertEqual(self.folder.doc.text.raw, "data")
    self.assertEqual(self.folder.doc.Format(), "text/html")