From c2e9a4debab54ca687daaf5cbe779d37ec649cc0 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Sat, 22 Nov 2014 18:42:55 -0200 Subject: [PATCH] Refactor test code (minor) --- sigi/apps/parlamentares/test_parlamentares.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sigi/apps/parlamentares/test_parlamentares.py b/sigi/apps/parlamentares/test_parlamentares.py index 99d71fc..de8f836 100644 --- a/sigi/apps/parlamentares/test_parlamentares.py +++ b/sigi/apps/parlamentares/test_parlamentares.py @@ -28,8 +28,7 @@ def test_list_filtered_by_capital_letter(some_parliamentarians, app): response = app.get('/parlamentares/parlamentar/?nome_completo=B') assert response.status_code == 200 - decoded_content = response.content.decode('utf-8') a, b, c = some_parliamentarians - assert a.nome_completo not in decoded_content - assert b.nome_completo in decoded_content - assert c.nome_completo not in decoded_content + assert a.nome_completo not in response.content + assert b.nome_completo in response.content + assert c.nome_completo not in response.content