def METHOD_NAME(self):
    self.factory.create_group(org=self.factory.create_org())
    response = self.make_request("get", "/api/groups", user=self.factory.create_admin())
    g_keys = ["type", "id", "name", "permissions"]
    def filtergroups(gs):
        return [project(g, g_keys) for g in gs]
    self.assertEqual(
        filtergroups(response.json),
        filtergroups(g.to_dict() for g in [self.factory.admin_group, self.factory.default_group]),
    )