aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/modifications_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/samplebinding/modifications_test.py')
-rw-r--r--tests/samplebinding/modifications_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/samplebinding/modifications_test.py b/tests/samplebinding/modifications_test.py
index b37d74635..344801015 100644
--- a/tests/samplebinding/modifications_test.py
+++ b/tests/samplebinding/modifications_test.py
@@ -143,5 +143,10 @@ class ModificationsTest(unittest.TestCase):
self.assertEqual(self.mods.getSize(ba), len(ba))
self.assertEqual(self.mods.getSize(ba, 20), 20)
+ def testNoNulPointerTag(self):
+ point = Point(12, 34)
+ self.assertEqual(self.mods.sumPointCoordinates(point), 12 + 34)
+ self.assertRaises(TypeError, self.mods.sumPointCoordinates, None)
+
if __name__ == '__main__':
unittest.main()