def test_clear(tmpfile):
    """Clear must also clear storage file"""
    test_dict = PersistentDict({'a': 42, 'b': 1464}, location=tmpfile)
    test_dict.clear()
    assert test_dict == {}
    assert not os.path.exists(tmpfile)