title: How to pass self in pytest when imported function takes self as argument
body: <p>Suppose i have a function stored in file.py</p>
  <pre><code>class temp_class:
      def __init__(self):
          self.x = None
      def temp_function(self , input):
          self.x = input
          return input+1
  
  </code></pre>
  <p>I want to write a pyest on the temp_function</p>
  <pre><code>import pytest
  from file.temp_class import temp_function
  
  def test_temp:
      input_ = 1
      expected_ = 2
      result_ = temp_function(self, input_)
      assert result_ == expected_
  </code></pre>
  <p>how should i write this</p>