[PATCH 11/11] Test: Adiciona getBens
camponez en gmail.com
camponez en gmail.com
Sab Mayo 25 14:07:19 UTC 2013
From: Eduardo Elias Camponez <camponez at gmail.com>
---
test/test_bens.py | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/test/test_bens.py b/test/test_bens.py
index e049675..9fa37fb 100644
--- a/test/test_bens.py
+++ b/test/test_bens.py
@@ -8,6 +8,20 @@ sys.path.insert(0, myPath + '/../src')
CONFIG = os.path.dirname(os.path.abspath(__file__))+'conf.py'
+from bens import Bens
+from contribuinte import Contribuinte
+
+class TestBens(unittest.TestCase):
+
+ def setUp(self):
+ self.cpf = '34278161174'
+ self.contribuinte = Contribuinte(self.cpf)
+ self.bens = Bens(self.contribuinte)
+
+ def test_GetBens(self):
+ self.assertEqual(self.bens.get_bens('totalExercicioAnterior'), '5.200,00')
+ self.assertEqual(self.bens.get_bens('totalExercicioAtual'), '0,00')
+
if __name__ == '__main__':
unittest.main()
--
1.8.1.2
Más información sobre la lista de distribución Softwares-impostos