def test_notify(self):
        self.flag = False

        def observer():
            self.flag = not self.flag

        workflow = Workflow()
        workflow.attach(observer)
        workflow.notify()
        assert self.flag is True
 def test_notify_no_observers(self):
     workflow = Workflow()
     workflow.notify()