Commits

Ian George committed 8653f02

Some awful mistakes made and fixed, all tests passing now

Comments (0)

Files changed (1)

statemachine/tests.py

         """ End to end smoke test of the transitions """
         self.fsm.transition("step1a", None)
         self.fsm.transition("step2", None)
+        #reload to check state is saved and reinstated
+        self.assertEqual(self.fsm.state, "step2")
         fsm_id = self.fsm.id
+        self.assertEqual(self.fsm.state, "step2")
         self.fsm = TestStateMachine.objects.get(pk=fsm_id)
         self.fsm.transition("step3", None)
         self.fsm.transition("end", None)