def test_admin_principal(self):
        access = IAccessBackend(None)
        access.is_admin = lambda x: True
        with patch.object(access, 'groups') as groups:
            groups.return_value = ['brotatos']
            principals = access.user_principals('abc')
        self.assertItemsEqual(principals, [Everyone, Authenticated, 'admin',
                                           'group:brotatos', 'user:abc'])
Admin user has the 'admin' principal
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_access_backends.py/TestBaseBackend.test_admin_principal