def test_to_python_one(self): field = MultiEmailField() res = field.to_python('*****@*****.**') nt.assert_equal(res, ['*****@*****.**'])
def test_to_python_more(self): field = MultiEmailField() res = field.to_python('[email protected], [email protected], [email protected]') nt.assert_equal(res, ['*****@*****.**', '*****@*****.**', '*****@*****.**'])
def test_to_python_nothing(self): field = MultiEmailField() res = field.to_python('') nt.assert_equal(res, [])
def test_to_python_more(self): field = MultiEmailField() res = field.to_python("[email protected], [email protected], [email protected]") nt.assert_equal(res, ["*****@*****.**", "*****@*****.**", "*****@*****.**"])