diff --git a/test/test-species-name_lookup.py b/test/test-species-name_lookup.py
index <HASH>..<HASH> 100644
--- a/test/test-species-name_lookup.py
+++ b/test/test-species-name_lookup.py
@@ -32,4 +32,4 @@ def test_name_lookup_faceting():
     assert 0 == len(res['results'])
     assert 1 == len(res['facets'])
     assert 2 == len(res['facets'][0])
-    assert ['field','counts'] == res['facets'][0].keys()
+    assert ['field','counts'] == list(res['facets'][0].keys())
fix name_lookup test to work in python3