def METHOD_NAME(self):
    with q_object(QWidget()) as parent:
        editor = ParameterValueLineEditor(parent)
        editor.set_data("align_left")
        self.assertTrue(editor.alignment() & Qt.AlignLeft)
        editor.set_data(2.3)
        self.assertTrue(editor.alignment() & Qt.AlignRight)