Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion hello.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#!/usr/bin/env python
#function to return "Hello World!"

def hello_world():
return "Hello!"
return "Hello World!"

4 changes: 0 additions & 4 deletions hello_test.py

This file was deleted.

11 changes: 11 additions & 0 deletions test_hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python

from hello import hello_world
import unittest

class Test_Hello(unittest.TestCase):
def test_basic(self):
expected = "Hello World!"
self.assertEqual(hello_world(), expected)

unittest.main()