diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-08-01 19:03:26 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:17:07 -0300 |
commit | cfcae8d657cb7d13acf2de753bd0e6db117e27f7 (patch) | |
tree | 5c808a8bec68dd12606598a2ad66c3feab11c376 /tests/samplebinding | |
parent | 22c7b2e24212b41fc941121f8df83eb238f8e0d3 (diff) |
Improved and fixed the setter and getter writer functions.
Also added an unit test to a protected container property.
Diffstat (limited to 'tests/samplebinding')
-rw-r--r-- | tests/samplebinding/protected_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/samplebinding/protected_test.py b/tests/samplebinding/protected_test.py index 8ebc99f11..83922d5d1 100644 --- a/tests/samplebinding/protected_test.py +++ b/tests/samplebinding/protected_test.py @@ -277,6 +277,12 @@ class ProtectedPropertyTest(unittest.TestCase): self.obj.protectedProperty = 3 self.assertEqual(self.obj.protectedProperty, 3) + def testProtectedContainerProperty(self): + '''Writes and reads a protected list of integers property.''' + lst = [1, 2, 3, 4] + self.obj.protectedContainerProperty = lst + self.assertEqual(self.obj.protectedContainerProperty, lst) + def testProtectedEnumProperty(self): '''Writes and reads a protected enum property.''' self.obj.protectedEnumProperty = Event.SOME_EVENT |