2FA: Use patch.object for monkey patching.
2FA: Use patch.object for monkey patching.

Ref #9521

showell/zulip,tommyip/zulip,rht/zulip,shubhamdhama/zulip,brainwane/zulip,rht/zulip,punchagan/zulip,punchagan/zulip,rht/zulip,zulip/zulip,andersk/zulip,jackrzhang/zulip,synicalsyntax/zulip,rht/zulip,zulip/zulip,eeshangarg/zulip,brainwane/zulip,timabbott/zulip,timabbott/zulip,synicalsyntax/zulip,kou/zulip,andersk/zulip,eeshangarg/zulip,dhcrzf/zulip,brainwane/zulip,zulip/zulip,zulip/zulip,shubhamdhama/zulip,punchagan/zulip,kou/zulip,eeshangarg/zulip,jackrzhang/zulip,hackerkid/zulip,eeshangarg/zulip,dhcrzf/zulip,rishig/zulip,eeshangarg/zulip,rishig/zulip,shubhamdhama/zulip,hackerkid/zulip,synicalsyntax/zulip,punchagan/zulip,dhcrzf/zulip,andersk/zulip,synicalsyntax/zulip,eeshangarg/zulip,andersk/zulip,tommyip/zulip,showell/zulip,synicalsyntax/zulip,andersk/zulip,rishig/zulip,showell/zulip,synicalsyntax/zulip,tommyip/zulip,tommyip/zulip,jackrzhang/zulip,rishig/zulip,showell/zulip,hackerkid/zulip,brainwane/zulip,andersk/zulip,punchagan/zulip,dhcrzf/zulip,showell/zulip,timabbott/zulip,hackerkid/zulip,rht/zulip,eeshangarg/zulip,jackrzhang/zulip,hackerkid/zulip,showell/zulip,jackrzhang/zulip,shubhamdhama/zulip,timabbott/zulip,brainwane/zulip,dhcrzf/zulip,timabbott/zulip,kou/zulip,punchagan/zulip,brainwane/zulip,dhcrzf/zulip,brainwane/zulip,shubhamdhama/zulip,shubhamdhama/zulip,timabbott/zulip,synicalsyntax/zulip,rht/zulip,kou/zulip,hackerkid/zulip,zulip/zulip,jackrzhang/zulip,rht/zulip,hackerkid/zulip,tommyip/zulip,shubhamdhama/zulip,zulip/zulip,kou/zulip,zulip/zulip,dhcrzf/zulip,andersk/zulip,rishig/zulip,tommyip/zulip,tommyip/zulip,kou/zulip,timabbott/zulip,jackrzhang/zulip,rishig/zulip,kou/zulip,punchagan/zulip,rishig/zulip,showell/zulip