def test_categories_subsequent(handler, framework):
    logger = txaio.make_logger()

    txaio.add_log_categories({"TX100": u"{adjective} {nouns[2]}"})
    txaio.add_log_categories({"TX100": u"{adjective} {nouns[1]}"})

    # do something a little fancy, with attribute access etc.
    logger.critical(
        log_category="TX100",
        adjective='hilarious',
        nouns=['skunk', 'elephant', 'wombat'],
    )

    assert len(handler.messages) == 1
    assert handler.messages[0].endswith(b"hilarious elephant")
Later calls to add_log_categories update the list of log categories and
dataset/ETHPy150Open crossbario/txaio/test/test_logging.py/test_categories_subsequent