Beispiel #1
0
 def testStr_Whitespace(self):
     expected = [user_utils.UsernameToEmail('aaa')]
     actual = mail_utils._SanitizeAddrs('  aaa  ')
     self.assertEqual(expected, actual)
Beispiel #2
0
 def testUnknown(self):
     for unsupported in [{}, None, 12345]:
         self.assertEqual([], mail_utils._SanitizeAddrs(unsupported))
Beispiel #3
0
 def testList_Email(self):
     expected = [user_utils.UsernameToEmail('aaa')]
     actual = mail_utils._SanitizeAddrs([user_utils.UsernameToEmail('aaa')])
     self.assertListEqual(expected, actual)