Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/tutorius/tests/actiontests.py
diff options
context:
space:
mode:
authormike <michael.jmontcalm@gmail.com>2009-05-05 05:44:27 (GMT)
committer mike <michael.jmontcalm@gmail.com>2009-05-05 05:44:27 (GMT)
commit6fa568daae3291c7a876cd903f04079a12945dcb (patch)
treefaa112d6dee15fa9d6dc340762e7a45878842bee /src/sugar/tutorius/tests/actiontests.py
parentd66690142b643401429bfff84d42acac002e1980 (diff)
parentfb49b482f5bd478bada50cd1ab25a876806eff31 (diff)
Merge branch 'mike'
Conflicts: source/external/source/sugar-toolkit/src/sugar/tutorius/actions.py source/external/source/sugar-toolkit/src/sugar/tutorius/tests/actiontests.py source/external/source/sugar-toolkit/src/sugar/tutorius/tests/run-tests.py
Diffstat (limited to 'src/sugar/tutorius/tests/actiontests.py')
-rw-r--r--src/sugar/tutorius/tests/actiontests.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/sugar/tutorius/tests/actiontests.py b/src/sugar/tutorius/tests/actiontests.py
index bce753e..d244547 100644
--- a/src/sugar/tutorius/tests/actiontests.py
+++ b/src/sugar/tutorius/tests/actiontests.py
@@ -52,6 +52,28 @@ class PropsTest(unittest.TestCase):
for prop_name in act.get_properties():
assert act.properties[prop_name].value == test_props[prop_name], "Wrong initial value for property %s : %s"%(prop_name,str(act.properties[prop_name]))
+
+class DialogMessageTest(unittest.TestCase):
+ def setUp(self):
+ self.dial = DialogMessage("Message text", [200, 300])
+
+ def test_properties(self):
+ assert self.dial.message.value == "Message text", "Wrong start value for the message"
+
+ assert self.dial.position.value == [200, 300], "Wrong start value for the position"
+
+class BubbleMessageTest(unittest.TestCase):
+ def setUp(self):
+ self.bubble = BubbleMessage(message="Message text", pos=[200, 300], tailpos=[-15, -25])
+
+ def test_properties(self):
+ props = self.bubble.get_properties()
+
+ assert "message" in props, 'No message property of BubbleMessage'
+
+ assert "position" in props, 'No position property in BubbleMessage'
+
+ assert "tail_pos" in props, 'No tail position property in BubbleMessage'
class CountAction(Action):