add a unit test
This commit is contained in:
parent
be46cc1f1b
commit
45c41b8ad0
8
funniest/tests/test_joke.py
Normal file
8
funniest/tests/test_joke.py
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
from unittest import TestCase
|
||||||
|
|
||||||
|
import funniest
|
||||||
|
|
||||||
|
class TestJoke(TestCase):
|
||||||
|
def test_is_string(self):
|
||||||
|
s = funniest.joke()
|
||||||
|
self.assertTrue(isinstance(s, str))
|
5
setup.py
5
setup.py
@ -8,4 +8,7 @@ setup(name = "funniest",
|
|||||||
author_email = "flyingcircus@example.com",
|
author_email = "flyingcircus@example.com",
|
||||||
license = "MIT",
|
license = "MIT",
|
||||||
packages = ["funniest"],
|
packages = ["funniest"],
|
||||||
zip_safe = False)
|
zip_safe = False,
|
||||||
|
test_suite = "nose.collector",
|
||||||
|
tests_require = ["nose"],
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user