def test_remove_trash_with_trash(): with tempdir(): wrapper = Wrapper() os.mkdir(".trash") assert os.path.exists(".trash") wrapper.empty_trash() assert not os.path.exists(".trash")
def test_remove_trash_no_trash(): with tempdir(): wrapper = Wrapper() wrapper.empty_trash()