示例#1
0
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)
示例#2
0
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)
示例#3
0
 def setUp(self):
   self.provider = RandomParagraphProvider()
示例#4
0
 def setUp(self):
     self.provider = RandomParagraphProvider()