How would you go to do this for c++? Specifically for classes and templates, is there an easy way to call code without having to manually write the demangled names of the functions?
Not that I know of. If I were doing it I'd expose a library / interface with pybind11 to test, but really I find Googles unit testing framework or boosts to both be pretty effective.