def test_signed_area(self): a0 = [(0, 0), (0, 2), (2, 2), (2, 0), (0, 0)] a1 = [(0, 0, 1), (0, 2, 2), (2, 2, 3), (2, 0, 4), (0, 0, 1)] self.assertEqual(geometry.signed_area(a0), geometry.signed_area(a1)) a2 = [(0, 0, 1, 3), (0, 2, 2)] self.assertRaises(ValueError, geometry.signed_area, a2)