Exemplo n.º 1
0
 def test_url_query(self):
     # Send a reddit.com url and get back a different url
     outbound = utils.generate_outbound_link(self.thing, self.url)
     urlparser = utils.UrlParser(outbound.url)
     self.assertEqual(urlparser.query_dict["url"], self.url)
Exemplo n.º 2
0
 def test_url_query(self):
     # Send a reddit.com url and get back a different url
     outbound = utils.generate_outbound_link(self.thing, self.url)
     urlparser = utils.UrlParser(outbound.url)
     self.assertEqual(urlparser.query_dict["url"], self.url)
Exemplo n.º 3
0
 def test_reddit_url(self):
     # Send a reddit.com url and get back the same url
     permalink = self.thing.make_permalink_slow(True)
     outbound = utils.generate_outbound_link(self.thing, permalink)
     self.assertEqual(outbound.url, permalink)
Exemplo n.º 4
0
 def test_reddit_url(self):
     # Send a reddit.com url and get back the same url
     permalink = self.thing.make_permalink_slow(True)
     outbound = utils.generate_outbound_link(self.thing, permalink)
     self.assertEqual(outbound.url, permalink)