Example #1
0
 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])
Example #2
0
 def test_from_list(self):
     cycle = LifecycleList("cycle_name", "b", "a", "b", "c")
     lifecycle = Lifecycle.from_lifecyclelist(cycle)
     self.assertEqual(cycle.name, lifecycle.name)