Exemplo n.º 1
0
 def test__prep_value__list(self):
     w = MultiEmailWidget()
     value = w.prep_value(['*****@*****.**', '*****@*****.**'])
     self.assertEqual(value, '[email protected],[email protected]')
Exemplo 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]')
Exemplo 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, '')