

def test_isinstance_works():
    date = datetime.date.today()
    now = datetime.datetime.now()
    freezer = freeze_time('2011-01-01')
    freezer.start()
    assert isinstance(date, datetime.date)
    assert (not isinstance(date, datetime.datetime))
    assert isinstance(now, datetime.datetime)
    assert isinstance(now, datetime.date)
    freezer.stop()

dataset/ETHPy150Open spulec/freezegun/tests/test_class_import.py test_isinstance_works/original