How to test whether a variable holds a lambda?
<p>Is there a way to test whether a variable holds a lambda?
The context is I'd like to check a type in a unit test:</p>

<pre><code>self.assertEquals(lambda, type(myVar))
</code></pre>

<p>The type seems to be "function" but I didn't see any obvious builtin type to match it.
Obviously I can write this, but it feels clumsy:</p>

<pre><code>self.assertEquals(type(lambda m: m), type(myVar))
</code></pre>
