def METHOD_NAME(self):
    """Leak test of static methods"""
    import cppyy
    cppyy.cppdef("""\
    namespace LeakCheck {
    class MyClass02 {
    public:
        static void static_method() {}
        static void static_method_ol(int) {}
        static void static_method_ol(std::string s) {}
        template<class T> static void static_method_ol(T) {}
        static std::string static_method_ret() { return "aap"; }
    }; }""")
    ns = cppyy.gbl.LeakCheck
    for m in [ns.MyClass02, ns.MyClass02()]:
        self.check_func(m, 'static_method')
        self.check_func(m, 'static_method_ol', 42)
        self.check_func(m, 'static_method_ol', '42')
        self.check_func(m, 'static_method_ol', 42.)    # template
        self.check_func(m, 'static_method_ol', 42., tmpl_args='float')
        self.check_func(m, 'static_method_ret')