Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/j/django-pgfields-HEAD/tests/coercive_lists/tests.py   django-pgfields(Download)
    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])