Updates accents on céntimos in Spanish (#240)

* Updates accents on céntimos in Spanish

* Update test_es.py

* Update test_es.py

* fix tests

* fix encoding

* Update tox.ini

* Update test_cli.py

* Update test_cli.py

* Update test_cli.py

* Update lang_AR.py

flake-8 compliant

* Update test_cli.py

flake8 compliant

* Update test_cli.py

* Update test_cli.py
This commit is contained in:
Alvaro
2019-02-12 19:59:46 +01:00
committed by Ernesto Rodriguez Ortiz
parent aa9b882fe6
commit eef5b03593
5 changed files with 51 additions and 46 deletions

View File

@@ -106,6 +106,7 @@ class CliTestCase(unittest.TestCase):
output = self.cli.run_cmd(150.55, '--lang', 'es', '--to', 'currency')
self.assertEqual(output.return_code, 0)
self.assertEqual(
output.out.strip(),
"ciento cincuenta euros con cincuenta y cinco centimos"
(output.out.decode('utf-8') if hasattr(output.out, 'decode') else
output.out).strip(),
"ciento cincuenta euros con cincuenta y cinco céntimos"
)