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.

Signed-off-by: default avatarMartin Pitt <>
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 ='[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