-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provides new base class called Validator. This mostly serves as an interface definition for now.
- Loading branch information
Showing
2 changed files
with
16 additions
and
0 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
class Validator(object): | |||
""" | |||
Base class for all validating classes | |||
""" | |||
def validate(self): | |||
""" | |||
Raises an exception if any validation tests fail | |||
""" | |||
pass | |||
|
|||
def is_valid(self): | |||
""" | |||
Returns False if any validation tests fail, otherwise returns True | |||
""" | |||
pass |