This repository has been archived by the owner on Jul 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get and test all three: argspec, docstring, and custom attrs.
- Loading branch information
Showing
3 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
from nose.tools import eq_, assert_not_equals | ||
from nose.tools import eq_ | ||
|
||
import fmn.lib.tests | ||
|
||
|
||
class TestDefaults(fmn.lib.tests.Base): | ||
class TestHintDecoration(fmn.lib.tests.Base): | ||
def test_hint_decoration(self): | ||
rules = self.valid_paths['fmn.lib.tests.example_rules'] | ||
rule = rules['hint_masked_rule'] | ||
import pprint; | ||
pprint.pprint(rule) | ||
|
||
eq_(rule['title'], u'This is a docstring.') | ||
eq_(len(rule['args']), 1) | ||
|
||
eq_(len(rule['args']), 3) | ||
|
||
eq_(rule['datanommer-hints'], {'categories': ['whatever']}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters