def test_admin(self):
        is_admin = self.backend.is_admin('dsa')
        params = {'username': 'dsa'}
        self.requests.get.assert_called_with('server/admin', params=params,
                                             auth=self.auth)
        self.assertEqual(is_admin, self.requests.get().json())
Query server to determine if user is admin
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_access_backends.py/TestRemoteBackend.test_admin