title: It is possible to add function to mock inside parametrized list?
body: <p>I have two functions: function1 and function2
  Is there a way to add them as a parameter in parameterized list and then mock somehow?
  What I want to do is to run test 'name1' with mocked function1 and test 'name2' with mocked function2 instead.
  Or the only way to write two separate tests?</p>
  <pre><code>    @parameterized.expand([('name1', 1, 2),
                             ('name2', 2, 2)])
      @patch('functions.function1')
      def test_data(self, _, input, expected_output, mock_func):
          # given
          mock_func.return_value = input
          # when
          output = do_something()
          # then
          self.assertEqual(output.count(), expected_output)
  </code></pre>