Commit dc8eef26 authored by Jose Rostagno's avatar Jose Rostagno Committed by Martin Pitt
Browse files

Fix TestProperties.testBoxed test

A typo was preventing the test from being run.

https://bugzilla.gnome.org/show_bug.cgi?id=676644

Signed-off-by: default avatarMartin Pitt <martinpitt@gnome.org>
parent 853e6a71
......@@ -234,13 +234,13 @@ class TestProperties(unittest.TestCase):
self.assertEqual(obj.props.gtype, TYPE_UINT)
self.assertEqual(obj.gtype, TYPE_UINT)
def textBoxed(self):
def testBoxed(self):
obj = new(PropertyObject)
regex = GLib.Regex.new('[a-z]*', 0, 0)
obj.props.boxed = regex
self.assertEqual(obj.props.boxed.get_pattern(), '[a-z]*')
self.assertEqual(obj.boxed.get_patttern(), '[a-z]*')
self.assertEqual(obj.boxed.get_pattern(), '[a-z]*')
self.assertRaises(TypeError, setattr, obj, 'boxed', 'foo')
self.assertRaises(TypeError, setattr, obj, 'boxed', object())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment