# -*- coding: utf-8 -*-

#import unittest    # 1. llamar libreria
#import probando    # 2. llamar la clase a probar

# https://cgoldberg.github.io/python-unittest-tutorial/
# Todos los métodos que comiencen con el nombre test serán ejecutados.


# probando testing
#class TestUM(unittest.TestCase): # 3. heredar esto

#    def test_numbers_3_4(self):
#        # self.assertEqual( multiply(3,4), 12)4
#        self.assertEqual(7, 3+4)
#
#    def testProbando(self):     # 4. hacer clase con cualquier nombre que comience con test
#        # a = hola()
#        a = probando.probando()
#        b = a.hola()
#
#        self.assertEqual(b, "hola a todos")  # 5. escribir un assert

#    def testSumando(self):
#        a = probando.probando()
#        res = a.sumando(3,4)
#
##        self.assertEqual(res, 7, "3 + 5 ")
#        self.assertEqual(res, 7, "Error en la suma")



#if __name__ == '__main__': # 6. escribir un main
#    unittest.main()


'''
any member function whose name begins with test in a class deriving from "unittest.TestCase" will be run

This abbreviated output includes the amount of time the tests took,
Tests have 3 possible outcomes:
    ok
    The test passes.

    FAIL
    The test does not pass, and raises an AssertionError exception.

    ERROR
    The test raises an exception other than AssertionError.


'''




