def MockSocket_can_set_send_string_except_init(self): socket = MockSocket() socket._add_send_message_("HELLO") socket.send("WORLD")
def MockSocket_can_emulate_send_function(self): socket = MockSocket() socket._add_send_message_("ABC", "DEF") About(socket.send("ABC")).should_equal(3) About(socket.send("DEF")).should_equal(3)