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

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

src/d/j/django-pgfields-HEAD/tests/coercive_lists/tests.py   django-pgfields(Download)
    def test_insert(self):
        l = CoerciveList(lambda i: int(i), ['1', '2', 3, '5'])
        l.insert(1, '1')
        self.assertEqual(l, [1, 1, 2, 3, 5])
        self.assertEqual(l[0], 1)