-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance valid_values to use __contains__
Actually valid_values doesn't cover many of the use cases or validates that the value and valid_values provided can be used with 'in' call. his patch tries to improve this situation to ensure that both are valid for being checked or fail otherwise plus validating that valid_values contains the value provided. Closes-Bug: 1604073 Change-Id: I47a6f7d58d6cbeb8fd245620d187c4c565497290
- Loading branch information
Showing
2 changed files
with
96 additions
and
17 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