def METHOD_NAME(self):
    # Test the last resort to prevent segfault
    obj = DummyHasTraits(names=["A", "B", "C"])
    view = get_view(TabularAdapter(columns=["Name"]))
    with reraise_exceptions(), create_ui(obj, dict(view=view)) as ui:
        (editor,) = ui.get_editors("names")
        model = editor.model
        # sanity check
        self.assertEqual(model.rowCount(None), 3)
        # when
        # -1 is an invalid row. This should not cause segfault.
        model.moveRows([1], -1)
        # then
        mime_data = model.mimeData(
            [
                model.createIndex(i, 0)
                for i in range(
                    model.rowCount(None),
                )
            ]
        )
        content = mime_data.instance()
        self.assertEqual(content, ["A", "C", "B"])
        self.assertEqual(obj.names, content)