From 9a6281734f101768ed19cc82acef8ac61dd572f3 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Wed, 12 Sep 2012 14:48:24 -0300 Subject: Created unit test for QDBusActionGroup. --- tests/client/script_actiongrouptest.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tests/client/script_actiongrouptest.py (limited to 'tests/client/script_actiongrouptest.py') diff --git a/tests/client/script_actiongrouptest.py b/tests/client/script_actiongrouptest.py new file mode 100755 index 0000000..43409da --- /dev/null +++ b/tests/client/script_actiongrouptest.py @@ -0,0 +1,14 @@ +#!/usr/bin/python2.7 + +import time +from gi.repository import GLib +from menuscript import Script, ActionList, MENU_OBJECT_PATH + +al = ActionList(MENU_OBJECT_PATH) +al.appendItem("Menu0", "Menu0Act") +al.appendItem("Menu1", "Menu1Act") +al.removeItem("1", "Menu1Act") + +t = Script.create(al) +t.run() + -- cgit v1.2.3