示例#1
0
 def test_soma(self):
     op = operacoes.Operacoes(10, 10)
     value = op.soma()
     self.assertEquals(20, value)
示例#2
0
 def test_potencia(self):
     op = operacoes.Operacoes(10, 2)
     value = op.potencia()
     self.assertEquals(100, value)
示例#3
0
 def test_multiplicacao(self):
     op = operacoes.Operacoes(10, 10)
     value = op.multiplicacao()
     self.assertEquals(100, value)
示例#4
0
 def test_divisao(self):
     op = operacoes.Operacoes(10, 10)
     value = op.divisao()
     self.assertEquals(1, value)
示例#5
0
 def test_subtracao(self):
     op = operacoes.Operacoes(10, 10)
     value = op.subtracao()
     self.assertEquals(0, value)