aboutsummaryrefslogtreecommitdiffstats
path: root/t/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 't/__init__.py')
-rw-r--r--t/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/__init__.py b/t/__init__.py
index 560d9da..130a085 100644
--- a/t/__init__.py
+++ b/t/__init__.py
@@ -5,3 +5,10 @@ import vt100
class VT100Test(unittest.TestCase):
def setUp(self):
self.vt = vt100.vt100(24, 80)
+
+ def process(self, text):
+ if type(text) == type(""):
+ length = len(text.encode("utf-8"))
+ else:
+ length = len(text)
+ assert self.vt.process(text) == length