示例#1
0
 def setUp(self):
     setup_config(_CONFIG)
     self.old_httplib2 = httplib2.Http.request
     httplib2.Http.request = _request
     self.old_smtp = google_.SMTP
     google_.SMTPRequestor = _SMTP
     self.old_urlopen = urllib2.urlopen
     urllib2.urlopen = _urlopen
     self.mcclient_patcher = mock.patch('linkoauth.sstatus.Client')
     self.mcclient_patcher.start()
     self.mock_cache = MockCache()
     sstatus.Client.return_value = self.mock_cache
 def setUp(self):
     setup_config(_CONFIG)
示例#3
0
 def setUp(self):
     setup_config(_CONFIG)
     self.requester = TwitterRequester(_ACCOUNT)
 def setUp(self):
     setup_config(_CONFIG)
     self.requester = api(_ACCOUNT)