サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
iPhone 16
pythonwise.blogspot.com
Anonymous said... I tried this out, but the object wouldn't be fully restored on context exit. This is what worked for me : def __enter__(self): self.original = dict(self.obj.__dict__) self.obj.__dict__.update(self.mocks) return self def __exit__(self, typ, val, traceback): self.obj.__dict__ = self.original 23/2/12 11:54 jonathan hartley said... It's interesting to write your own, but there are a
このページを最初にブックマークしてみませんか?
『pythonwise.blogspot.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く