diff options
author | mike <michael.jmontcalm@gmail.com> | 2009-04-16 20:52:21 (GMT) |
---|---|---|
committer | mike <michael.jmontcalm@gmail.com> | 2009-04-16 20:52:21 (GMT) |
commit | e3633a2cc4a5aa061172f4962da86ce346151ff8 (patch) | |
tree | e12948a10b6dbb302d4e2fbfd92d8fa92ea2437a /src/sugar/tutorius/tests/propertiestests.py | |
parent | 0cad6dc96afc2ebd4d03beb14ed01bc155dfa322 (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 b54f849..45ba264 100644 --- a/src/sugar/tutorius/tests/propertiestests.py +++ b/src/sugar/tutorius/tests/propertiestests.py @@ -294,6 +294,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" @@ -321,6 +323,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" @@ -341,6 +345,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" |