add a unit test

This commit is contained in:
josh committed 2016-06-17 11:26:17 -04:00
1 parent be46cc1f1b
commit 45c41b8ad0
2 files changed
+12 -1

No files matched your search

+8
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))
+4 -1
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"],
)