Last active
December 20, 2018 13:36
-
-
Save hcosta/66cc1bfaa5c078d31a3422ddfad01b4e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cargamos el módulo unittest | |
import unittest | |
# Creamos una clase heredando de TestCase | |
class TestMyCalculator(unittest.TestCase): | |
# Creamos una prueba para probar un valor inicial | |
def test_initial_value(self): | |
calc = Calculator() | |
self.assertEqual(0, calc.value) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment