Merge pull request #17 from zinob/master

Lets allow the helpers to be helpfull
This commit is contained in:
Kenneth Reitz 2017-02-01 14:29:19 -05:00 committed by GitHub
commit e313706194
3 changed files with 9 additions and 3 deletions

View File

@ -1,9 +1,12 @@
# -*- coding: utf-8 -*-
from . import helpers
def get_hmm():
"""Get a thought."""
return 'hmmm...'
def hmm():
"""Contemplation..."""
print get_hmm()
if helpers.get_answer():
print(get_hmm())

View File

@ -0,0 +1,3 @@
def get_answer():
"""Get an answer."""
return True

View File

@ -9,8 +9,8 @@ class AdvancedTestSuite(unittest.TestCase):
"""Advanced test cases."""
def test_thoughts(self):
sample.hmm()
self.assertIsNone(sample.hmm())
if __name__ == '__main__':
unittest.main()
unittest.main()