示例#1
0
def test_filecomm_terminator():
    comm = FileCommunicator(mock.MagicMock())

    eq_(comm.terminator, "\n")

    comm.terminator = "*"
    eq_(comm._terminator, "*")

    comm.terminator = b"*"  # pylint: disable=redefined-variable-type
    eq_(comm._terminator, "*")
示例#2
0
def test_filecomm_terminator():
    comm = FileCommunicator(mock.MagicMock())

    assert comm.terminator == "\n"

    comm.terminator = "*"
    assert comm._terminator == "*"

    comm.terminator = b"*"
    assert comm._terminator == "*"
示例#3
0
def test_filecomm_terminator():
    comm = FileCommunicator(mock.MagicMock())

    eq_(comm.terminator, "\n")

    comm.terminator = "*"
    eq_(comm._terminator, "*")

    comm.terminator = b"*"
    eq_(comm._terminator, "*")