Ejemplo n.º 1
0
 def test_no_value(self):
     result = curriculum.shortlink(None)
     self.assertFalse(result)
Ejemplo n.º 2
0
 def test_with_text(self):
     url = "http://www.ricehintz.org/"
     result = curriculum.shortlink(url, "foo")
     self.assertIn("foo", result)
Ejemplo n.º 3
0
 def test_filter(self):
     url = "http://www.ricehintz.org/"
     result = curriculum.shortlink(url)
     self.assertIn(url, result)
 def test_no_value(self):
     result = curriculum.shortlink(None)
     self.assertFalse(result)
 def test_with_text(self):
     url = 'http://www.ricehintz.org/'
     result = curriculum.shortlink(url, 'foo')
     self.assertIn('foo', result)
 def test_filter(self):
     url = 'http://www.ricehintz.org/'
     result = curriculum.shortlink(url)
     self.assertIn(url, result)