def test_initializing_with_multiple_objects(self): somePedigreeQueue = PedigreeQueue(*self.someList) for obj in self.someList: self.assertEquals(obj, somePedigreeQueue.popleft())
def test_adding_multiple_objects_to_preinitialized_queue(self): somePedigreeQueue = PedigreeQueue() somePedigreeQueue.append(*self.someList) for obj in self.someList: self.assertEquals(obj, somePedigreeQueue.popleft())