<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 4 January 2016 at 12:25, Daniel Istrate <span dir="ltr">&lt;<a href="mailto:daniel.alexandrux.istrate@intel.com" target="_blank">daniel.alexandrux.istrate@intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":n7" class="a3s" style="overflow:hidden">+                                if method.startswith(&quot;test_&quot;) and hasattr(vars(t)[method], &#39;__call__&#39;):<br></div></blockquote></div><br>Using callable() instead of hasattr() would be neater.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>