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)
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