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, "*")
def test_filecomm_terminator(): comm = FileCommunicator(mock.MagicMock()) assert comm.terminator == "\n" comm.terminator = "*" assert comm._terminator == "*" comm.terminator = b"*" assert comm._terminator == "*"
def test_filecomm_terminator(): comm = FileCommunicator(mock.MagicMock()) eq_(comm.terminator, "\n") comm.terminator = "*" eq_(comm._terminator, "*") comm.terminator = b"*" eq_(comm._terminator, "*")