def METHOD_NAME(self):
    """Unability to commit state is handled gracefully"""
    os.mkdir("ro")
    os.chdir("ro")
    with BobStateWrap() as s1:
        s1.setInputHashes("path", b"hash")
        os.chmod(".", stat.S_IRUSR|stat.S_IXUSR)
    os.chmod(".", stat.S_IRUSR|stat.S_IWUSR|stat.S_IXUSR)
    self.unlock()
    os.unlink(".bob-state.pickle.new")
    with BobStateWrap() as s2:
        self.assertEqual(None, s2.getInputHashes("path"))