Skip to content

Instantly share code, notes, and snippets.

@itskevinsam
Created June 24, 2016 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itskevinsam/65157918c3cbdc22529c617e4f215572 to your computer and use it in GitHub Desktop.
Save itskevinsam/65157918c3cbdc22529c617e4f215572 to your computer and use it in GitHub Desktop.
Observer Output
wyldfyre@PITSWS190:~/temp$ python ObservableImplementation.py
Test Single Observer [Generic]
Invoked GenericObserver with arguments ('Hello', 'World', 'Test', 'Generic') {}
Test Multiple Observers [Generic, Logger, Email, WhatsApp]
Invoked GenericObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {}
Invoked LoggerObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {}
Invoked EmailerObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {}
Invoked WhatsApperObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {}
Test after removing Generic observer
Invoked LoggerObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {}
Invoked EmailerObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {}
Invoked WhatsApperObserver with arguments ('Hello', 'World', 'Test', 'Multiple') {}
wyldfyre@PITSWS190:~/temp$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment