2015-04-25 19:32:04 +02:00
|
|
|
import unittest
|
|
|
|
|
|
2019-08-07 09:45:02 -04:00
|
|
|
from hello_world import hello
|
2015-04-25 19:32:04 +02:00
|
|
|
|
2018-02-16 00:20:16 +08:00
|
|
|
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.0
|
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()
|