Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miszczes patch 3 #5

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
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
2 changes: 2 additions & 0 deletions .bbtravis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ install:
# Tests running commands
script:
- trial hello

xxx
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# hello-world
hello world project for buildbot tutorials

xxxx
5 changes: 5 additions & 0 deletions hello/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
"""hello world module"""


def goodbye(who):
"""function that says goodbye"""
return "bye " + who


def hello(who):
"""function that greats"""
return "hello " + who
9 changes: 6 additions & 3 deletions hello/test_hello.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
"""sample test"""
import unittest

from hello import hello
from hello import hello, goodbye


class TestHello(unittest.TestCase):
"""sample test"""

def test_world(self):
"""sample test"""
self.assertEqual(hello('world'), 'hello world')
self.assertEqual(hello("world"), "hello world")

def test_bye(self):
self.assertEqual(goodbye("world"), "bye world")

def test_world_unicode(self):
"""sample test with unicode"""
self.assertEqual(hello(u'world'), u'hello world')
self.assertEqual(hello("world"), "hello world")