broken_source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(messages, me, marker, followed_threads):
    n = 0
    for m in messages:
        if m['seq'] <= marker:
            continue
        if m['author'].lower() == me.lower() or m['kind'] != 'user':
            continue
        if m['thread'] is not None and not m['thread'] in followed_threads:
            continue
        n += 1
    badge = '' if n == 0 else ('99+' if n > 99 else str(n))
    return {'count': n, 'badge': badge}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_CASES = {1: [('message at the marker', ([{'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 10, []), {'badge': '1', 'count': 1}), ('own message from another client casing', ([{'seq': 5, 'author': 'Ana', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'ana', 1, []), {'badge': '1', 'count': 1}), ('call and join events', ([{'seq': 3, 'author': 'bo', 'kind': 'call', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'join', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '1', 'count': 1}), ('thread replies', ([{'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': 2, 'broadcast': True}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': 3, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': 4, 'broadcast': False}], 'me', 1, [3]), {'badge': '2', 'count': 2}), ('reply to the seq-zero root', ([{'seq': 11, 'author': 'di', 'kind': 'user', 'thread': 0, 'broadcast': False}, {'seq': 12, 'author': 'di', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 1, []), {'badge': '1', 'count': 1}), ('badge cap boundary', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'me', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99', 'count': 99}), ('over the cap', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 101, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 102, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 102}), ('nothing new', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 2, []), {'badge': '', 'count': 0}), ('local handle with capitals', ([{'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'Bo', 1, []), {'badge': '1', 'count': 1}), ('exactly one hundred', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 100})], 2: [('message at the marker', ([{'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 20, []), {'badge': '1', 'count': 1}), ('own message from another client casing', ([{'seq': 5, 'author': 'Ana', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'ana', 2, []), {'badge': '1', 'count': 1}), ('call and join events', ([{'seq': 3, 'author': 'bo', 'kind': 'call', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'join', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '1', 'count': 1}), ('thread replies', ([{'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': 2, 'broadcast': True}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': 3, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': 4, 'broadcast': False}], 'me', 2, [3]), {'badge': '2', 'count': 2}), ('reply to the seq-zero root', ([{'seq': 11, 'author': 'di', 'kind': 'user', 'thread': 0, 'broadcast': False}, {'seq': 12, 'author': 'di', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 1, []), {'badge': '1', 'count': 1}), ('badge cap boundary', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'me', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99', 'count': 99}), ('over the cap', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 101, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 102, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 103, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 103}), ('nothing new', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 3, []), {'badge': '', 'count': 0}), ('local handle with capitals', ([{'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'Bo', 0, []), {'badge': '1', 'count': 1}), ('exactly one hundred', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 100})], 3: [('message at the marker', ([{'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 30, []), {'badge': '1', 'count': 1}), ('own message from another client casing', ([{'seq': 5, 'author': 'Ana', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'ana', 0, []), {'badge': '1', 'count': 1}), ('call and join events', ([{'seq': 3, 'author': 'bo', 'kind': 'call', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'join', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '1', 'count': 1}), ('thread replies', ([{'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': 2, 'broadcast': True}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': 3, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': 4, 'broadcast': False}], 'me', 3, [3]), {'badge': '2', 'count': 2}), ('reply to the seq-zero root', ([{'seq': 11, 'author': 'di', 'kind': 'user', 'thread': 0, 'broadcast': False}, {'seq': 12, 'author': 'di', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 1, []), {'badge': '1', 'count': 1}), ('badge cap boundary', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'me', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99', 'count': 99}), ('over the cap', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 101, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 102, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 103, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 104, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 104}), ('nothing new', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 4, []), {'badge': '', 'count': 0}), ('local handle with capitals', ([{'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'Bo', 1, []), {'badge': '1', 'count': 1}), ('exactly one hundred', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 100})], 4: [('message at the marker', ([{'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 40, []), {'badge': '1', 'count': 1}), ('own message from another client casing', ([{'seq': 5, 'author': 'Ana', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'ana', 1, []), {'badge': '1', 'count': 1}), ('call and join events', ([{'seq': 3, 'author': 'bo', 'kind': 'call', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'join', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '1', 'count': 1}), ('thread replies', ([{'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': 2, 'broadcast': True}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': 3, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': 4, 'broadcast': False}], 'me', 4, [3]), {'badge': '2', 'count': 2}), ('reply to the seq-zero root', ([{'seq': 11, 'author': 'di', 'kind': 'user', 'thread': 0, 'broadcast': False}, {'seq': 12, 'author': 'di', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 1, []), {'badge': '1', 'count': 1}), ('badge cap boundary', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'me', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99', 'count': 99}), ('over the cap', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 101, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 102, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 103, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 104, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 105, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 105}), ('nothing new', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 5, []), {'badge': '', 'count': 0}), ('local handle with capitals', ([{'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'Bo', 0, []), {'badge': '1', 'count': 1}), ('exactly one hundred', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 100})], 5: [('message at the marker', ([{'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 50, []), {'badge': '1', 'count': 1}), ('own message from another client casing', ([{'seq': 5, 'author': 'Ana', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'ana', 2, []), {'badge': '1', 'count': 1}), ('call and join events', ([{'seq': 3, 'author': 'bo', 'kind': 'call', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'join', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '1', 'count': 1}), ('thread replies', ([{'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': 2, 'broadcast': True}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': 3, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': 4, 'broadcast': False}], 'me', 5, [3]), {'badge': '2', 'count': 2}), ('reply to the seq-zero root', ([{'seq': 11, 'author': 'di', 'kind': 'user', 'thread': 0, 'broadcast': False}, {'seq': 12, 'author': 'di', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 1, []), {'badge': '1', 'count': 1}), ('badge cap boundary', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'me', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99', 'count': 99}), ('over the cap', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 101, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 102, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 103, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 104, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 105, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 106, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 106}), ('nothing new', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 6, []), {'badge': '', 'count': 0}), ('local handle with capitals', ([{'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'Bo', 1, []), {'badge': '1', 'count': 1}), ('exactly one hundred', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 100})]}
for _label, _args, _expected in _CASES[N]:
    check(_label, solve(*_args), _expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

meaning: Fixture-count band, not measured model difficulty

deps: stdlib

source:
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(messages, me, marker, followed_threads):
    n = 0
    for m in messages:
        if m['seq'] <= marker:
            continue
        if m['author'].lower() == me.lower() or m['kind'] != 'user':
            continue
        if m['thread'] is not None and not m['broadcast']:
            continue
        n += 1
    badge = '' if n == 0 else ('99+' if n > 99 else str(n))
    return {'count': n, 'badge': badge}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_CASES = {1: [('message at the marker', ([{'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 10, []), {'badge': '1', 'count': 1}), ('own message from another client casing', ([{'seq': 5, 'author': 'Ana', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'ana', 1, []), {'badge': '1', 'count': 1}), ('call and join events', ([{'seq': 3, 'author': 'bo', 'kind': 'call', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'join', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '1', 'count': 1}), ('thread replies', ([{'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': 2, 'broadcast': True}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': 3, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': 4, 'broadcast': False}], 'me', 1, [3]), {'badge': '2', 'count': 2}), ('reply to the seq-zero root', ([{'seq': 11, 'author': 'di', 'kind': 'user', 'thread': 0, 'broadcast': False}, {'seq': 12, 'author': 'di', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 1, []), {'badge': '1', 'count': 1}), ('badge cap boundary', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'me', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99', 'count': 99}), ('over the cap', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 101, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 102, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 102}), ('nothing new', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 2, []), {'badge': '', 'count': 0}), ('local handle with capitals', ([{'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'Bo', 1, []), {'badge': '1', 'count': 1}), ('exactly one hundred', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 100})], 2: [('message at the marker', ([{'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 20, []), {'badge': '1', 'count': 1}), ('own message from another client casing', ([{'seq': 5, 'author': 'Ana', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'ana', 2, []), {'badge': '1', 'count': 1}), ('call and join events', ([{'seq': 3, 'author': 'bo', 'kind': 'call', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'join', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '1', 'count': 1}), ('thread replies', ([{'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': 2, 'broadcast': True}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': 3, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': 4, 'broadcast': False}], 'me', 2, [3]), {'badge': '2', 'count': 2}), ('reply to the seq-zero root', ([{'seq': 11, 'author': 'di', 'kind': 'user', 'thread': 0, 'broadcast': False}, {'seq': 12, 'author': 'di', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 1, []), {'badge': '1', 'count': 1}), ('badge cap boundary', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'me', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99', 'count': 99}), ('over the cap', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 101, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 102, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 103, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 103}), ('nothing new', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 3, []), {'badge': '', 'count': 0}), ('local handle with capitals', ([{'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'Bo', 0, []), {'badge': '1', 'count': 1}), ('exactly one hundred', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 100})], 3: [('message at the marker', ([{'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 30, []), {'badge': '1', 'count': 1}), ('own message from another client casing', ([{'seq': 5, 'author': 'Ana', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'ana', 0, []), {'badge': '1', 'count': 1}), ('call and join events', ([{'seq': 3, 'author': 'bo', 'kind': 'call', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'join', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '1', 'count': 1}), ('thread replies', ([{'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': 2, 'broadcast': True}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': 3, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': 4, 'broadcast': False}], 'me', 3, [3]), {'badge': '2', 'count': 2}), ('reply to the seq-zero root', ([{'seq': 11, 'author': 'di', 'kind': 'user', 'thread': 0, 'broadcast': False}, {'seq': 12, 'author': 'di', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 1, []), {'badge': '1', 'count': 1}), ('badge cap boundary', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'me', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99', 'count': 99}), ('over the cap', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 101, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 102, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 103, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 104, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 104}), ('nothing new', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 4, []), {'badge': '', 'count': 0}), ('local handle with capitals', ([{'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'Bo', 1, []), {'badge': '1', 'count': 1}), ('exactly one hundred', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 100})], 4: [('message at the marker', ([{'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 40, []), {'badge': '1', 'count': 1}), ('own message from another client casing', ([{'seq': 5, 'author': 'Ana', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'ana', 1, []), {'badge': '1', 'count': 1}), ('call and join events', ([{'seq': 3, 'author': 'bo', 'kind': 'call', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'join', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '1', 'count': 1}), ('thread replies', ([{'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': 2, 'broadcast': True}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': 3, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': 4, 'broadcast': False}], 'me', 4, [3]), {'badge': '2', 'count': 2}), ('reply to the seq-zero root', ([{'seq': 11, 'author': 'di', 'kind': 'user', 'thread': 0, 'broadcast': False}, {'seq': 12, 'author': 'di', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 1, []), {'badge': '1', 'count': 1}), ('badge cap boundary', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'me', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99', 'count': 99}), ('over the cap', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 101, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 102, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 103, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 104, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 105, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 105}), ('nothing new', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 5, []), {'badge': '', 'count': 0}), ('local handle with capitals', ([{'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'Bo', 0, []), {'badge': '1', 'count': 1}), ('exactly one hundred', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 100})], 5: [('message at the marker', ([{'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 50, []), {'badge': '1', 'count': 1}), ('own message from another client casing', ([{'seq': 5, 'author': 'Ana', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'ana', 2, []), {'badge': '1', 'count': 1}), ('call and join events', ([{'seq': 3, 'author': 'bo', 'kind': 'call', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'join', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '1', 'count': 1}), ('thread replies', ([{'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': 2, 'broadcast': True}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': 3, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': 4, 'broadcast': False}], 'me', 5, [3]), {'badge': '2', 'count': 2}), ('reply to the seq-zero root', ([{'seq': 11, 'author': 'di', 'kind': 'user', 'thread': 0, 'broadcast': False}, {'seq': 12, 'author': 'di', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 1, []), {'badge': '1', 'count': 1}), ('badge cap boundary', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'me', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99', 'count': 99}), ('over the cap', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 101, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 102, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 103, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 104, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 105, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 106, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 106}), ('nothing new', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 6, []), {'badge': '', 'count': 0}), ('local handle with capitals', ([{'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'cy', 'kind': 'user', 'thread': None, 'broadcast': False}], 'Bo', 1, []), {'badge': '1', 'count': 1}), ('exactly one hundred', ([{'seq': 1, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 2, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 3, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 4, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 5, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 6, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 7, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 8, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 9, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 10, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 11, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 12, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 13, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 14, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 15, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 16, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 17, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 18, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 19, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 20, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 21, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 22, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 23, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 24, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 25, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 26, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 27, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 28, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 29, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 30, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 31, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 32, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 33, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 34, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 35, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 36, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 37, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 38, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 39, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 40, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 41, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 42, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 43, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 44, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 45, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 46, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 47, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 48, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 49, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 50, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 51, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 52, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 53, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 54, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 55, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 56, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 57, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 58, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 59, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 60, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 61, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 62, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 63, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 64, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 65, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 66, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 67, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 68, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 69, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 70, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 71, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 72, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 73, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 74, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 75, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 76, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 77, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 78, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 79, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 80, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 81, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 82, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 83, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 84, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 85, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 86, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 87, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 88, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 89, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 90, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 91, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 92, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 93, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 94, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 95, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 96, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 97, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 98, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 99, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}, {'seq': 100, 'author': 'bo', 'kind': 'user', 'thread': None, 'broadcast': False}], 'me', 0, []), {'badge': '99+', 'count': 100})]}
for _label, _args, _expected in _CASES[N]:
    check(_label, solve(*_args), _expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)

prompt:
Thread replies are counted or ignored without honoring both the "also send to channel" flag and followed threads.

messages are {seq, author, kind, thread, broadcast}. A message counts when seq > marker, the author differs from me (user handles compare case-insensitively), kind is exactly "user", and it is top level (thread is None) or a thread reply that is broadcast to the channel or belongs to a followed thread (a thread root may have seq 0). Badge: "" for 0, the count up to 99, "99+" above 99.

split: open-access