def METHOD_NAME(self):
    """Leak test of methods"""
    import cppyy
    cppyy.cppdef("""\
    namespace LeakCheck {
    class MyClass03 {
    public:
        void method() {}
        void method_ol(int) {}
        void method_ol(std::string s) {}
        std::string method_ret() { return "aap"; }
        template<class T> void method_ol(T) {}
    }; }""")
    ns = cppyy.gbl.LeakCheck
    m = ns.MyClass03()
    self.check_func(m, 'method')
    self.check_func(m, 'method_ol', 42)
    self.check_func(m, 'method_ol', '42')
    self.check_func(m, 'method_ol', 42.)     # template
    self.check_func(m, 'method_ol', 42., tmpl_args='float')
    self.check_func(m, 'method_ret')