add a unit test
This commit is contained in:
1 parent
be46cc1f1b
commit
45c41b8ad0
2 files changed
+12
-1
No files matched your search
@@ -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))
|
||||||
@@ -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"],
|
||||||
|
)
|
||||||
Reference in new issue
Block a user