diff --git a/backend/tests/vocabularies/test_voc_estados.py b/backend/tests/vocabularies/test_voc_estados.py index 199a1f3..93c392f 100644 --- a/backend/tests/vocabularies/test_voc_estados.py +++ b/backend/tests/vocabularies/test_voc_estados.py @@ -16,8 +16,13 @@ def test_vocabulary(self): assert isinstance(self.vocab, SimpleVocabulary) @pytest.mark.parametrize( - "token", - ["PR", "SP", "DF"], + "token,value", + [ + ["PR", "Paraná"], + ["SP", "São Paulo"], + ["PE", "Pernambuco"], + ], ) - def test_token(self, token): - assert token in [x for x in self.vocab.by_token] + def test_token(self, token, value): + term = self.vocab.getTermByToken(token) + assert term.title == value