From 19fbf305ba2dd3d3554fbc08e48f54f7baa7ec9d Mon Sep 17 00:00:00 2001
From: Martin Burchell <martinb@aptivate.org>
Date: Fri, 31 Jul 2015 16:58:53 +0100
Subject: [PATCH] Made taxonomy test more robust

---
 django/website/transport/tests/taxonomy_list_tests.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/django/website/transport/tests/taxonomy_list_tests.py b/django/website/transport/tests/taxonomy_list_tests.py
index 6bab5ee4..50f96258 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
-- 
GitLab