More robust currency guessing

This allows to parse PayPal balances which includes both symbol and letters, for
instance "$ 42,00 USD".
Also, it does not require adding any new symbols to the regular
expression.
It might break modules, though numerous cases were tested.
This commit is contained in:
Laurent Bachelier 2013-02-04 15:16:03 +01:00
commit 81e3da8bb0
2 changed files with 27 additions and 4 deletions

View file

@ -1,5 +1,6 @@
[nosetests]
verbosity = 2
detailed-errors = 1
with-doctest = 1
where = weboob
tests = weboob.tools.capabilities.paste,weboob.tools.path
tests = weboob.tools.capabilities.paste,weboob.tools.path,weboob.capabilities.bank