Exemplo n.º 1
0
 def test_shorten_short_str_is_same(self):
     s = 'Hello World'
     assert_equal(s, shorten_str(s, 50))
Exemplo n.º 2
0
 def test_shorten_to_really_short(self):
     assert_equal('Hello', shorten_str('Hello World', 5))
Exemplo n.º 3
0
 def test_shorten_str(self):
     s = shorten_str('Hello there World', 15)
     assert_equal(s, 'Hello ... World')