def METHOD_NAME(self):
    # Test with auto_set set to True.
    view = View(Item("filepath", editor=FileEditor(auto_set=True)))
    obj = FileModel()
    tester = UITester()
    with tester.create_ui(obj, dict(view=view)) as ui:
        filepath_field = tester.find_by_name(ui, "filepath")
        filepath_field.perform(KeySequence("some_file.txt"))
        self.assertEqual(obj.filepath, "some_file.txt")