Skip to content
Permalink
0f1adda2c0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
14 lines (8 sloc) 296 Bytes
# pylint: disable=C0414,C0111,C0103,W0104,W0212
import unittest
from .joke import JokeService
class JokeServiceTestCase(unittest.TestCase):
def setUp(self):
self.js = JokeService()
def test_random_joke(self):
self.assertTrue(self.js.random_joke() in self.js._jokes)