예제 #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)
예제 #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)
예제 #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)
예제 #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)