Add one more parsing test for scopes

This commit is contained in:
Joseph Schorr 2015-08-03 14:13:38 -04:00
parent 354f4109d0
commit d6ee14e219

View file

@ -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'))