2015-04-25 19:32:04 +02:00
|
|
|
import unittest
|
|
|
|
|
|
2021-01-31 16:49:12 -05:00
|
|
|
from hello_world import (
|
|
|
|
|
hello,
|
|
|
|
|
)
|
2015-04-25 19:32:04 +02:00
|
|
|
|
2020-10-15 12:46:24 -04:00
|
|
|
# Tests adapted from `problem-specifications//canonical-data.json`
|
2015-11-17 16:11:53 +00:00
|
|
|
|
2019-07-24 12:35:16 -04:00
|
|
|
|
2018-06-13 09:12:09 -04:00
|
|
|
class HelloWorldTest(unittest.TestCase):
|
2019-07-24 12:35:16 -04:00
|
|
|
def test_say_hi(self):
|
2019-08-07 09:45:02 -04:00
|
|
|
self.assertEqual(hello(), "Hello, World!")
|
2016-09-28 08:07:42 -03:00
|
|
|
|
|
|
|
|
|
2019-07-24 12:35:16 -04:00
|
|
|
if __name__ == "__main__":
|
2015-04-25 19:32:04 +02:00
|
|
|
unittest.main()
|