Ejemplo n.º 1
0
 def test_link_post(self, Link):
     post = Link()
     post.url = 'https://example.com'
     post.is_self = False
     url = _get_scrape_url(post)
     self.assertEqual(url, 'https://example.com')
Ejemplo n.º 2
0
 def test_link_post(self, Link):
     post = Link()
     post.url = 'https://example.com'
     post.is_self = False
     url = _get_scrape_url(post)
     self.assertEqual(url, 'https://example.com')