'Read a line from the wire.
:param allowed: An iterable of command names that should be allowed.
:return: A tuple of (command, value); see _split_proto_line.
:raise UnexpectedCommandError: If an error occurred reading the line.'

def read_proto_line(self, allowed):

    return _split_proto_line(self.proto.read_pkt_line(), allowed)
