Beispiel #1
0
 def test_left(self):
     s = 'abcdefghijklmnopqrstuvwxyz'
     self.assertEqual(cplay.cut(s, 10, left=True), '<rstuvwxyz')
Beispiel #2
0
 def test_left(self):
     s = 'abcdefghijklmnopqrstuvwxyz'
     self.assertEqual(cplay.cut(s, 10, left=True), '<rstuvwxyz')
Beispiel #3
0
 def test_right(self):
     s = 'abcdefghijklmnopqrstuvwxyz'
     self.assertEqual(cplay.cut(s, 10), 'abcdefghi>')
Beispiel #4
0
 def test_right(self):
     s = 'abcdefghijklmnopqrstuvwxyz'
     self.assertEqual(cplay.cut(s, 10), 'abcdefghi>')