示例#1
0
 def _fixture_setupP(self):
     TestRunner.setupFixture()
     if not hasattr(self, 'fixtures'):
         self.fixtures = []
     if self.fixtures[0] != 'initial_data':
         self.fixtures.insert(0, 'initial_data')
     TestCase._fixture_setup(self)
示例#2
0
 def _fixture_setupP1(self):
     TestRunner.setupFixture()
     origFixtures = None
     if hasattr(self, 'fixtures'):
         origFixtures = self.fixtures
     self.fixtures = [ 'initial_data' ]
     TestCase._fixture_setup(self)
     if origFixtures is not None:
         self.fixtures = origFixtures
         TestCase._fixture_setup(self)
     else:
         del self.fixtures