diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-15 14:34:40 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-18 19:45:07 -0300 |
commit | f52951862649d104abf664da5d456b0e0bb987fd (patch) | |
tree | 57dab8ef1b7017677c3d3397b4e18f0fbee86792 /tests | |
parent | 579e99ea8c58f3a7d11d5e7549cb3383a68500a5 (diff) |
Added test for conversion of lists with invalid contents.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/samplebinding/list_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/samplebinding/list_test.py b/tests/samplebinding/list_test.py index ca13b2554..a71dbe716 100755 --- a/tests/samplebinding/list_test.py +++ b/tests/samplebinding/list_test.py @@ -103,6 +103,11 @@ class ListConversionTest(unittest.TestCase): self.assertEqual(pt0.x() * mult, pt1.x()) self.assertEqual(pt0.y() * mult, pt1.y()) + def testConversionOfInvalidLists(self): + mult = 3 + pts = (Point(1.0, 2.0), 3, Point(5, 6)) + self.assertRaises(TypeError, ListUser.multiplyPointList, pts, mult) + if __name__ == '__main__': unittest.main() |