Esempio n. 1
0
    def test_get_groups(self):
        req = {
            'keys': [user.pub_key.to_string()]
        }

        resp = api.get_groups(json.dumps(req)).text
        self.assertTrue(group_name in resp, msg=resp)
Esempio n. 2
0
    def test_get_groups(self):
        req = {
            'keys': [user.pub_key.to_string()]
        }

        resp = api.get_groups(json.dumps(req)).text
        res_dict = json.loads(resp)
        self.assertEqual(res_dict[0], group_name, msg=resp)