Skip to content

Instantly share code, notes, and snippets.

@svngoku
Created November 3, 2018 19:09
Show Gist options
  • Save svngoku/1b66ec2672bca7a80d3f43a7b4c8d49f to your computer and use it in GitHub Desktop.
Save svngoku/1b66ec2672bca7a80d3f43a7b4c8d49f to your computer and use it in GitHub Desktop.
UnitTest Python3 created by svngoku - https://repl.it/@svngoku/UnitTest-Python3
# 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()
def addition(x):
return x + 2
@svngoku
Copy link
Author

svngoku commented Nov 3, 2018

Test unitaire effectuer avec Python 3 - Code commit depuis https://repl.it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment