示例#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())
示例#2
0
 def getValue(self):
   name = RandomNameProvider.getValue(self)
   return '.'.join(name.split()).lower() + '@' + self.getRandomDomain()
示例#3
0
 def getValue(self):
     name = RandomNameProvider.getValue(self)
     return '.'.join(name.split()).lower() + '@' + self.getRandomDomain()
示例#4
0
 def setUp(self):
   self.provider = RandomNameProvider()