Пример #1
0
class RandomEmailProviderTest(unittest.TestCase):
    """Test class for RandomEmailProvider.
  """
    def setUp(self):
        self.provider = RandomEmailProvider()

    def testGetValue(self):
        """Tests getValue().
    """
        value = self.provider.getValue()
        self.assertTrue(value is not None)
        self.assertTrue(email_re.match(value))
Пример #2
0
class RandomEmailProviderTest(unittest.TestCase):
  """Test class for RandomEmailProvider.
  """

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

  def testGetValue(self):
    """Tests getValue().
    """
    value = self.provider.getValue()
    self.assertTrue(value is not None)
    self.assertTrue(email_re.match(value))
Пример #3
0
 def setUp(self):
     self.provider = RandomEmailProvider()
Пример #4
0
 def setUp(self):
   self.provider = RandomEmailProvider()