Exemplo n.º 1
0
 def MockSocket_can_emulate_recv_that_can_get_small_flagment(self):
     socket = MockSocket()
     socket._add_recv_message_("ABCDEF")
     About(socket.recv(3)).should_equal("ABC")
     About(socket.recv(3)).should_equal("DEF")
 def MockSocket_can_emulate_recv_that_can_get_small_flagment(self):
     socket = MockSocket()
     socket._add_recv_message_("ABCDEF")
     About(socket.recv(3)).should_equal("ABC")
     About(socket.recv(3)).should_equal("DEF")
Exemplo n.º 3
0
 def MockSocket_can_add_recv_strings_except_constructor(self):
     socket = MockSocket()
     socket._add_recv_message_("ABC", "DEF")
     About(socket.recv(4096)).should_equal("ABC")
     About(socket.recv(4096)).should_equal("DEF")
 def MockSocket_can_add_recv_strings_except_constructor(self):
     socket = MockSocket()
     socket._add_recv_message_("ABC", "DEF")
     About(socket.recv(4096)).should_equal("ABC")
     About(socket.recv(4096)).should_equal("DEF")