| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| assert len(policy) == 0 | ||
| assert dict(policy) == {} |
There was a problem hiding this comment.
Accessing policy.owners, policy.editors results in __getitem__ being called, which adds empty entries to the dictionary. I moved these empty dict asserts up as a result.
An alternative is to keep them in their previous location and check that the three roles with empty bindings were added
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #154
__getitem__ currently returns an empty set() for items not in the bindings. If someone adds to the set returned by __getitem__ the changes will not be reflected on the actual policy object.