criar testes
This commit is contained in:
12
modules/testes.py
Normal file
12
modules/testes.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import unittest
|
||||||
|
import agente
|
||||||
|
|
||||||
|
|
||||||
|
class TestClasseAgente(unittest.TestCase):
|
||||||
|
def test_criarAgente(self):
|
||||||
|
obj_agente = agente.Agente(aleatorio=True)
|
||||||
|
self.assertTrue(type(obj_agente), 'Agente')
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
||||||
Reference in New Issue
Block a user