def test_empty(self): self.assertEqual(pointwise('add', [], []), [])
def test_tuple(self): self.assertEqual(pointwise('add', [1, 1], (2, 2)), (3, 3))
def test_singleton(self): self.assertEqual(pointwise('add', [1, 1], 1), [2, 2])
def test_add(self): self.assertEqual(pointwise('add', [1, 1], [2, 2]), [3, 3])