Exemple #1
0
 def site_shortens_url_to(self, long_url, short_url):
     fake_request = FakeRequest()
     site = FanfictionNetSite(fake_request)
     site._get_html_for_url(long_url)
     self.assertEqual(fake_request.requested_url, short_url)