From 55171027f524ee50e123fa6c01c55eb47f46c1c3 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Tue, 23 Aug 2016 17:35:37 -0300 Subject: [PATCH] Assertiva para determinar se registro foi criado --- sapl/materia/tests/test_materia.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapl/materia/tests/test_materia.py b/sapl/materia/tests/test_materia.py index fbba770d5..b8ad79280 100644 --- a/sapl/materia/tests/test_materia.py +++ b/sapl/materia/tests/test_materia.py @@ -459,6 +459,8 @@ def test_proposicao_submit(admin_client): assert response.status_code == 200 proposicao = Proposicao.objects.first() + + assert proposicao is not None assert proposicao.descricao == 'Teste proposição' assert proposicao.tipo.pk == 3