def snakecase(camelcase_string):
    return _uppercase_letter_pattern.sub(lambda x: ('_' if x.start() else '') + x.group(0), camelcase_string).lower()
Test that any excess idle transports are closed when a message is received.
dataset/ETHPy150Open sodastsai/taskr/taskr/contrib/converters.py/snakecase--crossover with--dataset/ETHPy150Open twisted/nevow/nevow/test/test_athena.py/Transport.test_closeExcessOnReceived