fragments_cutoff = -1
for idx, line_t in enumerate(self._lines_t[:] + [('', '')]):
if line_t[1].startswith(_MARK_FRAGMENT):
+ assert _SEP_0 in line_t[1], (idx, line_t)
if anchor:
fragments[anchor] = tuple(fragment)
- if not line_t[1][len(_MARK_FRAGMENT):].rstrip():
+ anchor = line_t[1].split(_SEP_0, maxsplit=1)[1]
+ if anchor.startswith(_MARK_FRAGMENT):
fragments_cutoff = idx
break
- anchor = line_t[1].split(_SEP_0, maxsplit=1)[1]
fragment.clear()
continue
fragment += [line_t]
log 1 > USER foobarbazquux 0 * :baz
log 1 > NICK :foo
-×
+× ×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
# NB: FakeIrcConnection on any port > 10000 will fail connecting with a timeout
# the TestingClient meanwhile will decrement any port of that range by 1 after
servermsg 0 MSG
log 1 < MSG
-×
+× ×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
# to prepare, initiate connection
> /connect foo.bar.baz foo bar:baz
insert servermsglogged : +0 MSG ERROR :XXX
log 1 $ connection_state set to: [XXX]
-×
+× ×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
# to prepare first test, initiate connected state
> /connect foo.bar.baz foo bar:baz
servermsg 0 timeout
log 1 > PING :what's up?
-×
+× ×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
> /connect foo.bar.baz foo:bar baz:foobarbazquux
insert isupport-clear
log 8 $ connection_state set to: []
log , $ DISCONNECTED
-×
+× ×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
# on /connect init databases, log in new windows
> /connect foo.bar.baz foo:bar baz:foobarbazquux
insert lines-ping-pong : +75 ?? 22
insert lines-ping-pong : +77 ?? 23
-×
+× ×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
insert lines-empty
insert lines-status-prompt-start : +22 X123456789X123456789X =================([0]
servermsg 0 MSG
log 1 < MSG
-×
+× ×××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××××
> /connect foo.bar.baz foo bar:baz
log 1 $ isupport cleared