def METHOD_NAME(self):
    self.folder.invokeFactory("File", "file1")
    file_obj = self.folder["file1"]
    settings = PatternsSettingsView(file_obj, self.layer["request"])
    result = settings()
    self.assertEqual(result["data-base-url"], file_obj.absolute_url())
    self.assertEqual(result["data-portal-url"], self.layer["portal"].absolute_url())
    self.assertEqual(result["data-view-url"], file_obj.absolute_url() + "/view")