Skip to content

Commit f9a9de2

Browse files
committed
Estudando framework unittest
1 parent 22183c7 commit f9a9de2

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

oo/teste_carro.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from unittest import TestCase
2+
from oo.carro import Motor
3+
4+
class CarroTesteCase(TestCase):
5+
def teste_velocidade_inicial(self):
6+
motor=Motor()
7+
self.assertEqual(0, motor.velocidade)

0 commit comments

Comments
 (0)