def METHOD_NAME(self):
    """A corrupted uncommitted state must be discarded"""
    with BobStateWrap() as s1:
        s1.setInputHashes("path", b"hash")
    s2 = BobState()
    s2.setInputHashes("path", b"must-be-discarded")
    # simulate hard crash and corrupt state
    self.unlock()
    del s2
    with open(".bob-state.pickle.new", "r+b") as f:
        f.write(b"garbabe")
    with BobStateWrap() as s3:
        self.assertEqual(b"hash", s3.getInputHashes("path"))