class TestOperacoes(TestCase): def setUp(self): self.operacoes = Operacoes() def test_soma(self): self.assertEqual(self.operacoes.soma([1, 2]), 2, 'Deveria ser par')
class TestOperacoes(TestCase): def setUp(self): self.operacoes = Operacoes() def test_soma(self): self.assertEqual(self.operacoes.soma([1,5]), 6, "Should be 6")
class TestOperacoes(TestCase): # Operacoes().soma([1, 3]) def setUp(self): self.operacoes = Operacoes() def test_soma(self): self.assertEqual(self.operacoes.soma([1, 3]), 5, 'Deveria ser 4')
def test_soma(): operacoes = Operacoes() assert operacoes.soma([1, 5]) == 6, "Should be 6"