about summary refs log tree commit diff
path: root/test/python/test_groups.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/test_groups.py')
-rw-r--r--test/python/test_groups.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/python/test_groups.py b/test/python/test_groups.py
index 0c55a8f..a3dcb55 100644
--- a/test/python/test_groups.py
+++ b/test/python/test_groups.py
@@ -9,7 +9,7 @@ import json
 import unittest
 
 from auth_helpers import TOKEN_ENV, auth_token
-from server_test_case import database_reachable, HOST, PORT, ServerTestCase
+from server_test_case import database_reachable, HOST, PORT, ServerTestCase, envelope_data
 
 
 
@@ -32,7 +32,7 @@ class GroupsTest(ServerTestCase):
             conn.close()
         self.assertEqual(response.status, 200)
 
-        groups = json.loads(body)
+        groups = envelope_data(body)
         self.assertTrue(groups)
         names = {record["name"] for record in groups}
         self.assertIn("BXD", names)
@@ -53,7 +53,7 @@ class GroupsTest(ServerTestCase):
                 response = conn.getresponse()
                 body = response.read()
                 self.assertEqual(response.status, 200, path)
-                return json.loads(body)
+                return envelope_data(body)
             finally:
                 conn.close()