about summary refs log tree commit diff
path: root/test/python/test_group_by_name.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/test_group_by_name.py')
-rw-r--r--test/python/test_group_by_name.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/python/test_group_by_name.py b/test/python/test_group_by_name.py
index f562cbe..6256a1f 100644
--- a/test/python/test_group_by_name.py
+++ b/test/python/test_group_by_name.py
@@ -70,6 +70,16 @@ class GroupByNameTest(ServerTestCase):
         self.assertEqual(error["next"], "/groups")
         self.assertEqual(error["request_id"], request_id)
 
+    def test_group_by_name_names_the_mapping_tool(self):
+        if not database_reachable():
+            self.skipTest("no database on 127.0.0.1:3306")
+
+        response, body = self.get("/groups/HSNIH-Palmer")
+        self.assertEqual(response.status, 200)
+        group = envelope_data(body)
+        self.assertEqual(group["mapping_method_id"], "2")
+        self.assertEqual(group["mapping_method"], "Rqtl")
+
 
 if __name__ == "__main__":
     unittest.main()