hmm... If there has more than one test case need these mock in other suites, I would put them to top-level setup function. Otherwise stub them for every test case seems an unnecessary overhead to me, or you think it's fine for test?