Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)
Represents a status line as returned by x3270 following a command

src/p/y/py3270-0.2.0/py3270/tests/test_emulator.py   py3270(Download)
from nose.tools import eq_
 
from py3270 import EmulatorBase, Emulator, Command, Status, FieldTruncateError, \
    TerminatedError, KeyboardStateError, CommandError
 
    def test_empty(self):
        s = Status(None)
        eq_(s.as_string, '')
        eq_(s.keyboard, None)
 
    def test_split(self):
        statstr = 'U F U C(192.85.72.197) I 4 24 80 16 22 0x0 0.082'
        s = Status(statstr)
    def test_str_magic(self):
        statstr = 'U F U C(192.85.72.197) I 4 24 80 16 22 0x0 0.082'
        s = Status(statstr)
        eq_(str(s), 'STATUS: ' + statstr)