title: Invoked method from Python unit test issues
body: <p>I'm trying to invoke the following method, <em>post_sample</em> (filename index.py):</p>
  
  <pre><code>class Main(Resource):
      @app.route('/sample', methods=['POST'])
      def post_sample():
          return 'POST received'
  </code></pre>
  
  <p>From the following unittest code: </p>
  
  <pre><code>def test_post():
      Main().post_sample()
      print 'test_here'
  </code></pre>
  
  <p>But when I run I get the following error, which I'm having trouble making sense of: </p>
  
  <pre><code>&gt;       Main().post_sample()
  E       TypeError: post_sample() takes no arguments (1 given)
  
  tests/test_post.py:8: TypeError
  </code></pre>
  
  <p>TIA!</p>