Esempio n. 1
0
 def testPositives(self):
     T = lambda email: self.assertEqual(Utils.ValidEmailAddress(email), True
                                        )
     T('*****@*****.**')
     T(u'*****@*****.**')
     T('*****@*****.**')
     T("peter'*****@*****.**")
     T('*****@*****.**')
     T('*****@*****.**')
Esempio n. 2
0
 def testNegatives(self):
     F = lambda email: self.assertEqual(Utils.ValidEmailAddress(email),
                                        False)
     F('[email protected]')
     F('peter @fry-it.com')
     F('[email protected]')
     F(u'[email protected]')
     F('[email protected]@r.com')
     F('invalid@f#o.com')
     F('*****@*****.**')
     F('invalid@foo.')