python モック @patchを使って順序にハマる

@patch(A)
@patch(B)
class hoge():
 def fuga(self, mock__B, mock__A)

という順序になるので気をつけましょう。

自分がハマったのでメモ。