def get_groups(self, username):

        response = self._get(self.rest_url + "/user/group/direct",
                             params={"username": username})

        if not response.ok:
            return None

        return [g['name'] for g in response.json()['groups']]
Test to sets values in the org.gnome.desktop.wm.preferences schema
dataset/ETHPy150Open pycontribs/python-crowd/crowd.py/CrowdServer.get_groups--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/states/gnomedesktop_test.py/GnomedesktopTestCase.test_wm_preferences