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:
Diffstat (limited to 'src/sugar/tutorius/tests/actiontests.py')
-rw-r--r--src/sugar/tutorius/tests/actiontests.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/sugar/tutorius/tests/actiontests.py b/src/sugar/tutorius/tests/actiontests.py
index d1de5fd..cfb6114 100644
--- a/src/sugar/tutorius/tests/actiontests.py
+++ b/src/sugar/tutorius/tests/actiontests.py
@@ -29,15 +29,7 @@ from sugar.tutorius.services import ObjectStore
class PropertyAction(Action):
def __init__(self, na):
- self._a = na
-
- def set_a(self, na):
- self._a = na
-
- def get_a(self):
- return self._a
-
- a = property(fget=get_a, fset=set_a)
+ self.a = TIntProperty(na)
def has_function(obj, function_name):
"""
@@ -54,6 +46,7 @@ class PropsTest(unittest.TestCase):
assert prop.get_properties() == ['a'], "Action does not contain property 'a'"
+class OnceWrapperTest(unittest.TestCase):
def validate_wrapper(self, wrapper_instance):
"""
Ensures that a given instance of a wrapper implements the Action
@@ -67,7 +60,7 @@ class PropsTest(unittest.TestCase):
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