def test_append(self): l = CoerciveList(lambda i: int(i), ['1', '1', '2']) l.append('3') l.append(5.0) self.assertEqual(l, [1, 1, 2, 3, 5])