Esempio n. 1
0
 def test__prep_value__list(self):
     w = MultiEmailWidget()
     value = w.prep_value(['*****@*****.**', '*****@*****.**'])
     self.assertEqual(value, '[email protected],[email protected]')
Esempio n. 2
0
 def test__prep_value__string(self):
     w = MultiEmailWidget()
     value = w.prep_value('[email protected]\[email protected]')
     self.assertEqual(value, '[email protected]\[email protected]')
Esempio n. 3
0
 def test__prep_value__empty(self):
     w = MultiEmailWidget()
     value = w.prep_value('')
     self.assertEqual(value, '')
 def test__prep_value__list(self):
     w = MultiEmailWidget()
     value = w.prep_value(['*****@*****.**', '*****@*****.**'])
     self.assertEqual(value, '[email protected]\[email protected]')
 def test__prep_value__string(self):
     w = MultiEmailWidget()
     value = w.prep_value('[email protected]\[email protected]')
     self.assertEqual(value, '[email protected]\[email protected]')
 def test__prep_value__empty(self):
     w = MultiEmailWidget()
     value = w.prep_value('')
     self.assertEqual(value, '')