diff --git a/django/website/transport/tests/taxonomy_list_tests.py b/django/website/transport/tests/taxonomy_list_tests.py index 6bab5ee449aecae78379d3d692bb565d00292e71..50f96258fa013daff6ebe54f1ed4f2993647c3aa 100644 --- a/django/website/transport/tests/taxonomy_list_tests.py +++ b/django/website/transport/tests/taxonomy_list_tests.py @@ -11,6 +11,6 @@ def test_list_taxonomies_returns_taxonomies(): taxonomies = transport.taxonomies.list() - assert len(taxonomies) == 1 - [taxonomy] = taxonomies - assert taxonomy['name'] == 'Ebola Questions' + names = [t['name'] for t in taxonomies] + + assert taxonomy.name in names