The send_command read loop polls read_channel (netmiko decorates it with a session-lock wrapper that only __init__ can satisfy), so the old read_until_pattern mock died with AttributeError on instances built via __new__.