def setUp(self): """ Create mock oauth object """ self.mox = mox.Mox() self.oauth = PlurkOAuth("CONSUMER_KEY", "CONSUMER_SECRET") self.oauth_response = \ 'oauth_token_secret=O7WqqqWHA61f4ZE5izQdTQmK&oauth_token=ReqXBFOswcyR&oauth_callback_confirmed=true' # NOQA self.golden_token = dict(parse_qsl(self.oauth_response)) self.mox.StubOutWithMock(PlurkOAuth, 'request')