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/datetimes/tests.py   django-pgfields(Download)
        with mock.patch.object(DateTimeField, 'to_python') as tp:
            tp.return_value = datetime(2012, 4, 21, 16, tzinfo=pytz.UTC)
            dtf.get_prep_value(1335024000)
 
            # Starting in Django 1.7, there are actually two calls