diff --git a/.bbtravis.yml b/.bbtravis.yml index 45cbae0..48aa820 100644 --- a/.bbtravis.yml +++ b/.bbtravis.yml @@ -15,3 +15,5 @@ install: # Tests running commands script: - trial hello + +xxx diff --git a/README.md b/README.md index 89a6eac..d9417ff 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # hello-world hello world project for buildbot tutorials + +xxxx diff --git a/hello/__init__.py b/hello/__init__.py index c520c2f..ded688a 100644 --- a/hello/__init__.py +++ b/hello/__init__.py @@ -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 diff --git a/hello/test_hello.py b/hello/test_hello.py index 5e0fecd..f6623d1 100644 --- a/hello/test_hello.py +++ b/hello/test_hello.py @@ -1,7 +1,7 @@ """sample test""" import unittest -from hello import hello +from hello import hello, goodbye class TestHello(unittest.TestCase): @@ -9,8 +9,11 @@ class TestHello(unittest.TestCase): 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")