summaryrefslogtreecommitdiffstats
path: root/tests/test_properties.py
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2006-04-01 20:16:56 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2006-04-01 20:16:56 +0000
commit22f5cca8c5fa610139f7fd4aca777b33bd493c25 (patch)
treea1c5fd90c76ace7bb7206b699801565f206b19e6 /tests/test_properties.py
parentbdd7fe0d910a0bba8c44bda9c6ef699ffd4296e0 (diff)
downloadpygobject-22f5cca8c5fa610139f7fd4aca777b33bd493c25.tar.gz
pygobject-22f5cca8c5fa610139f7fd4aca777b33bd493c25.tar.xz
pygobject-22f5cca8c5fa610139f7fd4aca777b33bd493c25.zip
unit test for #335854
Diffstat (limited to 'tests/test_properties.py')
-rw-r--r--tests/test_properties.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test_properties.py b/tests/test_properties.py
index de290be..c73e6a9 100644
--- a/tests/test_properties.py
+++ b/tests/test_properties.py
@@ -3,7 +3,7 @@ import unittest
from common import testhelper
from gobject import GObject, GType, new, PARAM_READWRITE, \
- PARAM_CONSTRUCT, PARAM_CONSTRUCT_ONLY, TYPE_UINT64
+ PARAM_CONSTRUCT, PARAM_READABLE, PARAM_CONSTRUCT_ONLY, TYPE_UINT64
class PropertyObject(GObject):
__gproperties__ = {
@@ -110,3 +110,13 @@ class TestProperties(unittest.TestCase):
obj.props.uint64 = 1
self.assertEqual(obj.props.uint64, 1L)
+ def testUInt64DefaultValue(self):
+ try:
+ class TimeControl(GObject):
+ __gproperties__ = {
+ 'time': (TYPE_UINT64, 'Time', 'Time',
+ 0L, (1<<64) - 1, 0L,
+ PARAM_READABLE)
+ }
+ except OverflowError, ex:
+ self.fail(str(ex))