def stub_out(test, funcs):
 for (module, func) in funcs.items():
  test.stub_out(module, func)

def stub_out ( test , funcs ) : for ( module , func ) in funcs . items ( ) : test . stub_out ( module , func )
set the stubs in mapping in the db api .