title: Python : Assert that variable is instance method?
body: <p>How can one check if a variable is an instance method or not? I'm using python 2.5.</p>
  
  <p>Something like this:</p>
  
  <pre><code>class Test:
      def method(self):
          pass
  
  assert is_instance_method(Test().method)
  </code></pre>