def METHOD_NAME(self):
    with mock.patch("os.makedirs") as m:
        with LocalFileStorage(os.path.join(TEST_FOLDER, "baz")) as stor:
            m.return_value = None
    with mock.patch("os.makedirs", side_effect=throw(Exception)):
        stor = LocalFileStorage(os.path.join(TEST_FOLDER, "baz"))
        stor.close()
    with mock.patch("os.listdir", side_effect=throw(Exception)):
        stor = LocalFileStorage(os.path.join(TEST_FOLDER, "baz"))
        stor.close()
    with LocalFileStorage(os.path.join(TEST_FOLDER, "baz")) as stor:
        with mock.patch("os.listdir", side_effect=throw(Exception)):
            stor._maintenance_routine()
        with mock.patch("os.path.isdir", side_effect=throw(Exception)):
            stor._maintenance_routine()