def testSetUp(self): runners = [] shard._SetUp(MockRunner, '0', runners) self.assertEqual(len(runners), 1) self.assertEqual(runners[0].setups, 1)
def testSetUp(self): runners = [] counter = shard._ThreadSafeCounter() shard._SetUp(MockRunner, '0', runners, counter) self.assertEqual(len(runners), 1) self.assertEqual(runners[0].setups, 1)