Skip to content

Commit

Permalink
Merge pull request #2039 from MVrachev/add-test-case
Browse files Browse the repository at this point in the history
SuccinctRoles.is_delegated_role() add a test case
  • Loading branch information
Jussi Kukkonen committed Jun 27, 2022
2 parents c5f74c6 + ddbbcce commit 8a03abf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_api.py
Expand Up @@ -750,7 +750,14 @@ def test_is_delegated_role(self) -> None:

def test_is_delegated_role_in_succinct_roles(self) -> None:
succinct_roles = SuccinctRoles([], 1, 5, "bin")
false_role_name_examples = ["foo", "bin-", "bin-s", "bin-20", "bin-100"]
false_role_name_examples = [
"foo",
"bin-",
"bin-s",
"bin-0t",
"bin-20",
"bin-100",
]
for role_name in false_role_name_examples:
msg = f"Error for {role_name}"
self.assertFalse(succinct_roles.is_delegated_role(role_name), msg)
Expand Down

0 comments on commit 8a03abf

Please sign in to comment.