MCPcopy Create free account
hub / github.com/bugy/script-server / test_any_admin_when_mixed

Method test_any_admin_when_mixed

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

Source from the content-addressed store, hash-verified

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)
125
126 def test_is_admin_when_in_group(self):
127 self.assertAdmin('admin5', ['admin1', 'admin2', '@my_group'], True, groups={'my_group': ['admin5']})

Callers

nothing calls this directly

Calls 1

assertAdminMethod · 0.95

Tested by

no test coverage detected