

I have to echo what others have said, and tell you exposing your router’s login to the public internet is very risky (if you’re referring to the WiFi router in your home). I would strongly recommend some other solution to whatever broader problem you’re trying to solve with this—why do you need to access your router login from outside your home? Can the logging in (and presumably tinkering) be done at home? Definitely things to think through before proceeding.
What do you think of this Python project? It’s called
aurman, and it’s used by Arch Linux users to pull in packages from Arch User Repository (AUR), the unofficial package repo for Arch. It works as a wrapper aroundpacman, the standard Arch package manager.I think it already has some tests written for it, (possibly short of a full suite), so you’ll be able to contrast your tests with the existing ones as an exercise, but also provide more within the same framework.