throw error for missing permission_sets in PermissionSets.get_many

This commit is contained in:
dandds
2019-03-19 06:11:35 -04:00
parent 366ada5a90
commit 7c5e931c67
3 changed files with 13 additions and 4 deletions

View File

@@ -30,3 +30,8 @@ def test_get_many():
assert first_or_none(
lambda p: p.name == PermissionSets.EDIT_PORTFOLIO_FUNDING, perms_sets
)
def test_get_many_nonexistent():
with pytest.raises(NotFoundError):
PermissionSets.get_many(["nonexistent", "not real"])