def test_iteration(self): cycle = LifecycleList("cycle_name", "b", "a", "b", "c") lifecycle = Lifecycle.from_lifecyclelist(cycle) for i, state in enumerate(lifecycle): self.assertEqual(state, cycle[i])
def test_from_list(self): cycle = LifecycleList("cycle_name", "b", "a", "b", "c") lifecycle = Lifecycle.from_lifecyclelist(cycle) self.assertEqual(cycle.name, lifecycle.name)