diff options
author | mike <michael.jmontcalm@gmail.com> | 2009-04-16 18:54:50 (GMT) |
---|---|---|
committer | simpoir <simpoir@gmail.com> | 2009-04-23 17:31:01 (GMT) |
commit | d66690142b643401429bfff84d42acac002e1980 (patch) | |
tree | 9a1d85532ec9e17373cac51df5ca2f988161015f /src/sugar/tutorius/tests/propertiestests.py | |
parent | 78de92cde03264725093868231bdb539feb4f56b (diff) |
LP 348570 Core : Integrating properties to actions; adding tests
Diffstat (limited to 'src/sugar/tutorius/tests/propertiestests.py')
-rw-r--r-- | src/sugar/tutorius/tests/propertiestests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sugar/tutorius/tests/propertiestests.py b/src/sugar/tutorius/tests/propertiestests.py index 52a9a75..4f4caac 100644 --- a/src/sugar/tutorius/tests/propertiestests.py +++ b/src/sugar/tutorius/tests/propertiestests.py @@ -286,6 +286,8 @@ class TBooleanPropertyTest(unittest.TestCase): def test_basic_boolean(self): assert self.prop.value == False, "Could not set initial value via constructor" + assert self.prop.type == "boolean", "Wrong type for TBooleanProperty : %s"%self.prop.type + self.prop.set(True) assert self.prop.value == True, "Could not change the value via set" @@ -313,6 +315,8 @@ class TEnumPropertyTest(unittest.TestCase): def test_basic_enum(self): assert self.prop.value == "hello", "Could not set initial value on property" + assert self.prop.type == "enum", "Wrong type for TEnumProperty : %s"%self.prop.type + self.prop.set(True) assert self.prop.value, "Could not change the value via set" @@ -333,6 +337,8 @@ class TFilePropertyTest(unittest.TestCase): def test_basic_file(self): assert self.prop.value == "propertiestests.py", "Could not set initial value" + assert self.prop.type == "file", "Wrong type for TFileProperty : %s"%self.prop.type + self.prop.set("run-tests.py") assert self.prop.value == "run-tests.py", "Could not change value" |