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