Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sugar/tutorius/tests/actiontests.py31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/sugar/tutorius/tests/actiontests.py b/src/sugar/tutorius/tests/actiontests.py
index 6001ec7..d244547 100644
--- a/src/sugar/tutorius/tests/actiontests.py
+++ b/src/sugar/tutorius/tests/actiontests.py
@@ -52,36 +52,7 @@ 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 OnceWrapperTests(unittest.TestCase):
- def validate_wrapper(self, wrapper_instance):
- """
- Ensures that a given instance of a wrapper implements the Action
- interface.
- """
- assert has_function(wrapper_instance, "do"),\
- "The wrapper does not have the 'do' function"
-
- assert has_function(wrapper_instance, "undo"),\
- "The wrapper does not have the 'undo' function."
-
- assert has_function(wrapper_instance, "get_properties"),\
- "The wrapper does not have the 'get_properties' function."
-
- def test_once_wrapper_interface(self):
- """
- Tests that the interface of the OnceWrapper actually conforms to the of
- the Action.
- """
- prop = PropertyAction(7)
-
- onceWrap = OnceWrapper(prop)
-
- self.validate_wrapper(onceWrap)
-
- assert onceWrap.get_properties() == test_props.keys(), "OnceWrapper should give access to properties of the contained action"
-
+
class DialogMessageTest(unittest.TestCase):
def setUp(self):
self.dial = DialogMessage("Message text", [200, 300])