Created
November 3, 2018 19:09
-
-
Save svngoku/1b66ec2672bca7a80d3f43a7b4c8d49f to your computer and use it in GitHub Desktop.
UnitTest Python3 created by svngoku - https://repl.it/@svngoku/UnitTest-Python3
This file contains 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
# Unit Test With Python3 | |
import unittest | |
import test | |
class ModuleTest(unittest.TestCase): | |
def test_calcul(self): | |
assert(test.addition(2) == 4) | |
if __name__ == '__main__': | |
unittest.main() |
This file contains 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
def addition(x): | |
return x + 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test unitaire effectuer avec Python 3 - Code commit depuis https://repl.it