title: Best practice for Python: assert command() == False
body: <p>I wonder what is better/best:</p>
  
  <pre><code>&gt;&gt;&gt; def command():
  ...     return False
  ...
  &gt;&gt;&gt; assert command() == False
  &gt;&gt;&gt; assert command() is False
  &gt;&gt;&gt; assert not command()
  </code></pre>
  
  <p>Cheers, Markus</p>