Esempio 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")
Esempio 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")