Ajout système de test

This commit is contained in:
Benjamin Lejeune 2022-10-10 11:08:33 +02:00
parent 3c36e69cb9
commit a343756049
2 changed files with 13 additions and 0 deletions

0
__init__.py Normal file
View File

13
tests.py Normal file
View File

@ -0,0 +1,13 @@
import unittest
from main import is_hello_world
class TestProject(unittest.TestCase):
def test_when_text_is_hello_world_with_maj_then_work(self):
self.assertTrue(is_hello_world("Hello World"))
if __name__ == '__main__':
unittest.main()