Add one more parsing test for scopes
This commit is contained in:
parent
354f4109d0
commit
d6ee14e219
1 changed files with 3 additions and 0 deletions
|
@ -158,6 +158,9 @@ class TestAuth(ApiTestCase):
|
|||
# Invalid scope strings.
|
||||
self.assertParsedScopes('repo:read|repo:admin')
|
||||
|
||||
# Mixture of delimiters.
|
||||
self.assertParsedScopes('repo:read, repo:admin')
|
||||
|
||||
def test_subset_string(self):
|
||||
self.assertTrue(is_subset_string('repo:read', 'repo:read'))
|
||||
self.assertTrue(is_subset_string('repo:read repo:admin', 'repo:read'))
|
||||
|
|
Reference in a new issue