title: Can I handle multiple asserts within a single Python pytest method?
body: <p>I am writing tests with <code>pytest</code>, and I ran into the next problem: I have a test which testing some variable, and then I perform some heavy calculation, and after that I want to perform another test.</p>
  
  <p>The problem is- if the first <code>assert</code> failed, the whole test failed, and the <code>pystest</code> does not perform the second test.
  The code:</p>
  
  <pre><code>class TestSomething:
      def tests_method(self, some_variables):
          # Some actions that take a lot of time!
          assert some_var == 1
          # Some actions that take a lot of time!
          assert some_var == 2
  </code></pre>
  
  <p>I'm aware that this test method can be separated into 2 methods, but the performance issue here is crucial.</p>
  
  <p>There is a way I can run 2 asserts in one method?</p>