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

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

src/p/o/portfoliyo-HEAD/portfoliyo/tests/notifications/test_store.py   portfoliyo(Download)
    store.store(2, 'irrelevant')
 
    res = list(store.get_all(1))
 
    assert res == [
 
    # does not clear by default
    assert list(store.get_all(1)) == res
    assert store.pending_profile_ids() == set(['1'])
 
    store.store(2, 'irrelevant')
 
    res = list(store.get_all(1, clear=True))
 
    assert res == [
 
    # clears
    assert list(store.get_all(1)) == []
    assert store.pending_profile_ids() == set()
 
        mock_time.return_value = expired_time
 
        assert list(store.get_all(1)) == []