def testIsoceles(self): self.assertEqual(triangulo("iso1.txt"),"Isosceles") self.assertEqual(triangulo("iso2.txt"),"Isosceles")
def testEscaleno(self): self.assertEqual(triangulo("esca1.txt"),"Escaleno")
def testNoTri(self): self.assertEqual(triangulo("notri1.txt"),"No triangulo") self.assertEqual(triangulo("notri2.txt"),"No triangulo") self.assertEqual(triangulo("notri3.txt"),"No triangulo")
def testEquilatero(self): self.assertEqual(triangulo("equi1.txt"),"Equilatero") self.assertEqual(triangulo("equi2.txt"),"Equilatero")
def test_iscoceles(self): self.assertEqual(triangulo("isosceles1.txt"), "Isosceles") self.assertEqual(triangulo("isosceles2.txt"), "Isosceles")
def test_no_tri(self): self.assertEqual(triangulo("notriangulo1.txt"), "No es triangulo") self.assertEqual(triangulo("notriangulo2.txt"), "No es triangulo") self.assertEqual(triangulo("notriangulo3.txt"), "No es triangulo")
def test_equilatero(self): self.assertEqual(triangulo('equilatero1.txt'), 'Equilatero') self.assertEqual(triangulo('equilatero2.txt'), 'Equilatero')