def tester(url, data=None, **kwargs):
     self.assertEqual(self.frt, data.get("refresh_token"),
                      "Should attempt the FRT")
     return MinimalResponse(status_code=200,
                            text=json.dumps(
                                TokenCacheTestCase.build_response(
                                    uid=self.uid,
                                    utid=self.utid,
                                    foci="1",
                                    access_token="at")))
 def tester(url, **kwargs):
     return MinimalResponse(status_code=400, text=error_response)
 def tester(url, data=None, **kwargs):
     self.assertEqual(self.frt, data.get("refresh_token"),
                      "Should attempt the FRT")
     return MinimalResponse(status_code=400, text=error_response)
 def _dummy(self, url, **kwargs):
     return MinimalResponse(status_code=200,
                            text='{"refresh_token": "new"}')