summaryrefslogtreecommitdiff
path: root/tests/test_ansi.py
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-09-25 15:49:54 -0700
committerThomas Kluyver <takowl@gmail.com>2013-09-25 15:49:54 -0700
commit8386db8f686394a433f1ea9d1daeee6760a7e664 (patch)
tree6ae172885604fd406cccedda64c537dd00413bf4 /tests/test_ansi.py
parentf7832fe55f3406148bc9f22ea133ff0032db7f91 (diff)
downloadpexpect-git-8386db8f686394a433f1ea9d1daeee6760a7e664.tar.gz
Code tidy-up
Diffstat (limited to 'tests/test_ansi.py')
-rwxr-xr-xtests/test_ansi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_ansi.py b/tests/test_ansi.py
index 450957a..546c0f4 100755
--- a/tests/test_ansi.py
+++ b/tests/test_ansi.py
@@ -18,7 +18,6 @@ PEXPECT LICENSE
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
'''
-from __future__ import with_statement # bring 'with' stmt to py25
from pexpect import ANSI
import unittest
import PexpectTestCase
@@ -113,6 +112,7 @@ class ansiTestCase (PexpectTestCase.PexpectTestCase):
for c in write_text:
s.write (c)
assert str(s) == write_target
+
def test_torturet (self):
s = ANSI.ANSI (24,80)
with open('torturet.vt') as f:
@@ -120,6 +120,7 @@ class ansiTestCase (PexpectTestCase.PexpectTestCase):
for c in sample_text:
s.process (c)
assert s.pretty() == torture_target, 'processed: \n' + s.pretty() + '\nexpected:\n' + torture_target
+
def test_tetris (self):
s = ANSI.ANSI (24,80)
with open('tetris.data') as f: