class RandomParagraphProviderTest(unittest.TestCase): """Test class for RandomParagraphProvider. """ def setUp(self): self.provider = RandomParagraphProvider() def testGetValue(self): """Tests getValue(). """ value = self.provider.getValue() self.assertTrue('. ' in value) self.assertTrue('\n' not in value)
def setUp(self): self.provider = RandomParagraphProvider()