Is there a way to pass arguments to the setUp() method from a given test, or some other way to simulate this? e.g.,
import unittest
class MyTests(unittest.TestCase):
def setUp(self, my_arg):
# use the value of my_arg in some way
def test_1(self):
# somehow have setUp use my_arg='foo'
# do the test
def test_2(self):
# somehow have setUp use my_arg='bar'
# do the test