def test_delete_no_matches(storage, caplog):
    with caplog.at_level(logging.WARNING):
        deleted_files = storage.delete('there is no such file')
    assert (len(deleted_files) == 0)
    assert ('Not deleting anything' in caplog.text)
def test_delete_no_matches(storage, caplog):
    with caplog.at_level(logging.WARNING):
        deleted_files = storage.delete('there is no such file')
    assert (len(deleted_files) == 0)
    assert ('Not deleting anything' in caplog.text)