'Asserts the json response indicates success and redirection.'

def assert_json_success_response_looks_correct(self, response):

    self.assertEqual(200, response.status_code)
    payload = json.loads(response.content)
    self.assertTrue(payload.get('success'))
    self.assertEqual(pipeline.get_complete_url(self.provider.backend_name), payload.get('redirect_url'))
