add a unit test

This commit is contained in:
Josh Holtrop 2016-06-17 11:26:17 -04:00
parent be46cc1f1b
commit 45c41b8ad0
2 changed files with 12 additions and 1 deletions

View 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))

View File

@ -8,4 +8,7 @@ setup(name = "funniest",
author_email = "flyingcircus@example.com",
license = "MIT",
packages = ["funniest"],
zip_safe = False)
zip_safe = False,
test_suite = "nose.collector",
tests_require = ["nose"],
)