def test_user_groups(self):
        groups = self.backend.groups('dsa')
        params = {'username': 'dsa'}
        self.requests.get.assert_called_with(
            'server/groups', params=params, auth=self.auth)
        self.assertEqual(groups, self.requests.get().json())
Delegate fetching user groups to remote server
dataset/ETHPy150Open mathcamp/pypicloud/tests/test_access_backends.py/TestRemoteBackend.test_user_groups