Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Add example rule for test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Jan 13, 2015
1 parent 6a04a1a commit b0aad0b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fmn/lib/tests/example_rules.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
""" Some example rules for the test suite. """

import fmn.lib.hinting


def wat_rule(config, message):
return message['wat'] == 'blah'


def not_wat_rule(config, message):
return message['wat'] != 'blah'


@fmn.lib.hinting.hint(categories=['whatever'])
def hint_masked_rule(config, message, argument1):
""" This is a docstring.
For real, it is a docstring.
"""
return True

0 comments on commit b0aad0b

Please sign in to comment.