def test_left(self): s = 'abcdefghijklmnopqrstuvwxyz' self.assertEqual(cplay.cut(s, 10, left=True), '<rstuvwxyz')
def test_right(self): s = 'abcdefghijklmnopqrstuvwxyz' self.assertEqual(cplay.cut(s, 10), 'abcdefghi>')