Esempio n. 1
0
class RandomHtmlDocumentProviderTest(unittest.TestCase):
    """Test class for RandomHtmlDocumentProvider.
  """
    def setUp(self):
        self.provider = RandomHtmlDocumentProvider()

    def testGetValue(self):
        """Tests getValue().
    """
        value = self.provider.getValue()
        self.assertTrue('<html>' in value)
        self.assertTrue('<body>' in value)
        self.assertTrue('<h1>' in value)
        self.assertTrue('</html>' in value)
        self.assertTrue('</body>' in value)
        self.assertTrue('</h1>' in value)
Esempio n. 2
0
class RandomHtmlDocumentProviderTest(unittest.TestCase):
  """Test class for RandomHtmlDocumentProvider.
  """

  def setUp(self):
    self.provider = RandomHtmlDocumentProvider()

  def testGetValue(self):
    """Tests getValue().
    """
    value = self.provider.getValue()
    self.assertTrue('<html>' in value)
    self.assertTrue('<body>' in value)
    self.assertTrue('<h1>' in value)
    self.assertTrue('</html>' in value)
    self.assertTrue('</body>' in value)
    self.assertTrue('</h1>' in value)
Esempio n. 3
0
 def setUp(self):
   self.provider = RandomHtmlDocumentProvider()
Esempio n. 4
0
 def setUp(self):
     self.provider = RandomHtmlDocumentProvider()