title: Tests with test fixtures as class methods (PyTest)
body: <p>In organising tests in <code>PyTest</code>, I have seen that the test methods can be defined within a test class, like so:</p>
  
  <pre><code>class TestBasicEquality:
      def test_a_equals_b(self):
          assert 'a' == 'b'
  </code></pre>
  
  <p>If we want to write a test (<code>test_client</code>) that has to use a PyTest fixture <code>client</code> we do something like this:</p>
  
  <pre><code>def test_client(client):
      # assert client.something == something
  </code></pre>
  
  <p>But how can we organise the <code>test_client</code> within a test class? I have tried using <code>@pytest.mark.usefixtures(client)</code> as a decorator for the test class with no success.</p>
  
  <p>Can someone show how and/or point to a guide/documentation for me to understand?</p>
  
  <p>And perhaps <strong>a question hidden behind all this</strong>: when should we (or shouldn't) put pytest tests within a class? (only now starting to learn PyTest..) ?</p>