[tor-commits] [stem/master] Use getattr()/setattr() for mocking.mock_method