def test_idle(self): # In order to test something, we use one of the assert*() # methods provided by the TestCase base class # https://docs.python.org/2/library/unittest.html#unittest.TestCase.assertTrue self.assertTrue(isinstance(idle_text(), str))
def setUp(self): self.text = idle_text()