def METHOD_NAME(self):
    self.request.form.update(
        {
            "action": "save",
            "name": "my-layout",
            "global": "true",
            "layout": "<html><body>foobar</body></html>",
        }
    )
    login(self.portal, TEST_USER_NAME)
    setRoles(self.portal, TEST_USER_ID, ["Manager"])
    self.portal.restrictedTraverse("@@manage-layouts-from-editor")()
    layout_resources = queryResourceDirectory(
        CONTENT_LAYOUT_RESOURCE_NAME, "custom"
    )
    self.assertEqual(
        str(layout_resources["my-layout.html"]), "<html><body>foobar</body></html>"
    )