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)
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)