def test_class_jurus_simples(self): with pytest.raises(TypeError) as error: juros_simples(0) assert error.value == 'Capital precisa ser maior que zero.'
def test_class_jurus_simples4(self): with pytest.raises(TypeError) as error: juros_simples(1000, 0.1, 0) assert error.value == 'PerĂodo precisa ser maior que zero.'
def test_class_jurus_simples5(self): objeto = juros_simples(1000, 0.1, 2) assert objeto == 1200
def test_class_jurus_simples3(self): with pytest.raises(TypeError) as error: juros_simples(1000, 1.1) assert error.value == 'Taxa precisa estar entre 0 e 1.'