Esempio n. 1
0
class RandomNameProviderTest(unittest.TestCase):
  """Test class for RandomWordProvider.
  """

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

  def testGetValue(self):
    """Tests getValue().
    """
    value = self.provider.getValue()
    self.assertTrue(name in self.provider.choices for name in value.split())
Esempio n. 2
0
 def getValue(self):
   name = RandomNameProvider.getValue(self)
   return '.'.join(name.split()).lower() + '@' + self.getRandomDomain()
Esempio n. 3
0
 def getValue(self):
     name = RandomNameProvider.getValue(self)
     return '.'.join(name.split()).lower() + '@' + self.getRandomDomain()
Esempio n. 4
0
 def setUp(self):
   self.provider = RandomNameProvider()