daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Mar 18th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import unittest
  2.  
  3. from SALARIO import Salario_1
  4.  
  5. class SalarioTest(unittest.TestCase):
  6.  
  7.  
  8.     def test_salario_bruto(self):
  9.         salario = Salario_1(4620)
  10.         self.assertEqual(4620, salario.salario_bruto)
  11.  
  12.  
  13.     #def test_inss(self):
  14.      #   salario = Salario_1(4620)
  15.       #  self.assertAlmostEqual(508.205, salario.inss1)
  16.  
  17.     def test_salario_com_contribuicao(self):
  18.         salario = Salario_1(4620)
  19.         self.assertAlmostEqual(4111.795, salario.salario_com_contribuicao)
  20.     def test_irrf1(self):
  21.         salario = Salario_1(4620)
  22.         self.assertAlmostEqual(289.02875, salario.irrf1)
  23.     def test_salario_liquido(self):
  24.         salario = Salario_1(4620)
  25.         self.assertAlmostEqual(3822.771, salario.salarioliquido)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top