Skip to content

Commit

Permalink
Fix (#38)
Browse files Browse the repository at this point in the history
Raise NotImplementedError if all methods are implemented
  • Loading branch information
mindflayer authored and h2non committed Jan 13, 2017
1 parent 3b3933e commit e650cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pook/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def set_mock_engine(self, engine):

# Validate minimum viable interface
methods = ('activate', 'disable')
if all([hasattr(mock_engine, method) for method in methods]):
if not all([hasattr(mock_engine, method) for method in methods]):
raise NotImplementedError('engine must implementent the '
'required methods')

Expand Down

0 comments on commit e650cd1

Please sign in to comment.