After a match in found in each step of the functional test, read in
the remaining buffer before replying. This makes the captures
slightly more readable, especially if the match in early in a block
of output.
index, match, received = lusers[conversant].expect(
[question.encode("utf-8")], 5)
captures[conversant] += received.decode("utf-8")
+ try:
+ captures[conversant] += lusers[
+ conversant].read_very_eager().decode("utf-8")
+ except:
+ pass
if index is not 0:
print("ERROR: luser%s did not receive expected string:\n\n%s"
% (conversant, question))