aboutsummaryrefslogtreecommitdiffstats
path: root/t/__init__.py
blob: b7a4f127b4488601c32063ce1b8e31aa03cccf2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import unittest

import vt100

class VT100Test(unittest.TestCase):
    def setUp(self):
        self.vt = vt100.vt100(24, 80)

    def process(self, text):
        if type(text) == type(u""):
            length = len(text.encode("utf-8"))
        else:
            length = len(text)
        assert self.vt.process(text) == length