Merge pull request #17 from zinob/master
Lets allow the helpers to be helpfull
This commit is contained in:
commit
e313706194
|
@ -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())
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
def get_answer():
|
||||
"""Get an answer."""
|
||||
return True
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue