'æµè¯éåhtmläž­CDNçéŸæ¥ https://httpbin.org/'

def test_img_cdn_hard_rewrite(self):

    self.rv = self.client.get(self.url('/image/jpeg'), environ_base=env(), headers=headers())
    self.assertEqual('image/jpeg', self.rv.content_type, msg=self.dump())
    self.assertEqual(200, self.rv.status_code, msg=self.dump())
    self.assertEqual(2546631231, crc32(self.rv.data), msg=self.dump())
    with self.app.test_client() as c:
        self.rv2 = c.get(self.url('/'), environ_base=env(), headers=headers())
        self.assertIn('cdn2.zmirror-unittest.com/image/jpeg', self.rv2.data, msg=self.dump())
