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