MCPcopy Index your code
hub / github.com/bugy/script-server / test_any_user_is_admin

Method test_any_user_is_admin

src/tests/authorization_test.py:120–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118 self.assertAdmin('user1', ['admin1', 'admin2', 'admin3'], False)
119
120 def test_any_user_is_admin(self):
121 self.assertAdmin('admin5', [ANY_USER], True)
122
123 def test_any_admin_when_mixed(self):
124 self.assertAdmin('admin5', ['admin1', ANY_USER, 'admin2'], True)

Callers

nothing calls this directly

Calls 1

assertAdminMethod · 0.95

Tested by

no test coverage detected