def setUp(self): self.time_patch = patch('time.time', return_value=self.fake_time) self.time_patch.start() httpretty.enable() self.api = WrapperApi(self.application_key, self.application_secret, self.consumer_key) self.api._time_delta = 0 self.actual_base_url = WrapperApi.base_url