예제 #1
0
 def teste_rendimento_liquido_3(self):
     cbd = Cbd(1000, 8.5, 60)
     cbd2 = Cbd(1400, 9, 120)
     assert (4.223830471538108 == cbd.rendimento_liquido() +
             cbd2.rendimento_liquido())
예제 #2
0
 def teste_imposto_de_renda_3(self):
     cbd = Cbd(1400, 9, 120)
     cbd2 = Cbd(1400, 8.5, 60)
     assert (13.305065985345031 == cbd.imposto_de_renda() +
             cbd2.imposto_de_renda())
예제 #3
0
    def teste_rendimento_liquido_2(self):
        cbd = Cbd(1000, 8.5, 60)

        assert (1.3500731656813798 == cbd.rendimento_liquido())
예제 #4
0
 def teste_imposto_de_renda_2(self):
     cbd = Cbd(1000, 8.5, 60)
     assert (3.0376646227831174 == cbd.imposto_de_renda())
예제 #5
0
 def teste_imposto_de_renda(self):
     cbd = Cbd(1400, 8.5, 60)
     assert (4.252730471896359 == cbd.imposto_de_renda())
예제 #6
0
 def teste_rendimento_bruto_3(self):
     cbd = Cbd(1000, 8.5, 60)
     cbd2 = Cbd(1400, 8.5, 60)
     assert (32.40175597635323 == cbd.rendimento_bruto() +
             cbd2.rendimento_bruto()
             )  # utilizando round para testar com 5 casas decimais
예제 #7
0
 def teste_rendimento_bruto_2(self):
     cbd = Cbd(1000, 8.5, 60)
     assert (13.500731656813855 == cbd.rendimento_bruto()
             )  # utilizando round para testar com 5 casas decimais
예제 #8
0
 def teste_rendimento_bruto(self):
     cbd = Cbd(1400, 8.5, 60)
     assert (18.90102 == round(cbd.rendimento_bruto(), 5)
             )  # utilizando round para testar com 5 casas decimais