Source code for cis_interface.communication.tests.test_AsciiFileComm

import copy
from cis_interface.communication.tests import test_FileComm as parent


[docs]class TestAsciiFileComm(parent.TestFileComm): r"""Test for AsciiFileComm communication class.""" comm = 'AsciiFileComm' attr_list = (copy.deepcopy(parent.TestFileComm.attr_list) + ['comment'])
[docs] def test_send_recv_comment(self): r"""Test send/recv with commented message.""" msg_send = self.send_instance.comment + self.test_msg flag = self.send_instance.send(msg_send) assert(flag) flag, msg_recv = self.recv_instance.recv() assert(not flag) self.assert_equal(msg_recv, self.recv_instance.eof_msg)