Searched refs:has_scopes (Results 1 – 6 of 6) sorted by relevance
70 credentials_mock.has_scopes.return_value = True95 credentials_mock.has_scopes = True167 credentials_mock.has_scopes.return_value = False186 credentials_mock.has_scopes = False
448 credentials.has_scopes(self._get_scopes()))
1452 self.assertTrue(self.credentials.has_scopes('foo'))1453 self.assertTrue(self.credentials.has_scopes(['foo']))1454 self.assertFalse(self.credentials.has_scopes('bar'))1455 self.assertFalse(self.credentials.has_scopes(['bar']))1458 self.assertTrue(self.credentials.has_scopes('foo'))1459 self.assertTrue(self.credentials.has_scopes('bar'))1460 self.assertFalse(self.credentials.has_scopes('baz'))1461 self.assertTrue(self.credentials.has_scopes(['foo', 'bar']))1462 self.assertFalse(self.credentials.has_scopes(['foo', 'baz']))1465 self.assertFalse(self.credentials.has_scopes('foo'))
523 self.credentials.has_scopes(requested_scopes)):
512 credentials.has_scopes(['email', 'one', 'two']))
579 def has_scopes(self, scopes): member in OAuth2Credentials