Skip to content

Commit

Permalink
100% coverage for test_checker.py
Browse files Browse the repository at this point in the history
- Modern assert methods
- Whitespace cleanup
- A whole test class was being skipped because of a duplicate name.
  • Loading branch information
jamadden committed Sep 12, 2017
1 parent 1e5f8ac commit f2b4ab6
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 261 deletions.
4 changes: 2 additions & 2 deletions src/zope/security/checker.py
Expand Up @@ -633,7 +633,7 @@ def moduleChecker(module):
'__eq__', '__ne__', '__lt__', '__gt__',
'__le__', '__ge__'])

class BasicTypes(dict):
class _BasicTypes(dict):
"""Basic Types Dictionary
Make sure that checkers are really updated, when a new type is added.
Expand Down Expand Up @@ -685,7 +685,7 @@ def update(self, d):
else: # pragma: no cover
_basic_types[type(pytz.UTC)] = NoProxy

BasicTypes = BasicTypes(_basic_types)
BasicTypes = _BasicTypes(_basic_types)
del _basic_types

# Available for tests. Located here so it can be kept in sync with BasicTypes.
Expand Down

0 comments on commit f2b4ab6

Please sign in to comment.