Exemplo n.º 1
0
 def test_is_shortened(self):
     # Test URLs that have been shortened.
     self.assertTrue(Short.already('http://tinyurl.com/foo'))
     self.assertTrue(Short.already('http://is.gd/foo'))
     self.assertTrue(Short.already('http://linkee.com/foo'))
     self.assertTrue(Short.already('http://ou.gd/foo'))
     self.assertTrue(Short.already('http://durl.me/foo'))
Exemplo n.º 2
0
 def test_is_not_shortened(self):
     # Test a URL that has not been shortened.
     self.assertFalse(Short.already('http://www.python.org/bar'))