Exemple #1
0
 def test_to_python_one(self):
     field = MultiEmailField()
     res = field.to_python('*****@*****.**')
     nt.assert_equal(res, ['*****@*****.**'])
Exemple #2
0
 def test_to_python_more(self):
     field = MultiEmailField()
     res = field.to_python('[email protected], [email protected], [email protected]')
     nt.assert_equal(res,
                     ['*****@*****.**', '*****@*****.**', '*****@*****.**'])
Exemple #3
0
 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,
                     ['*****@*****.**', '*****@*****.**', '*****@*****.**'])
 def test_to_python_one(self):
     field = MultiEmailField()
     res = field.to_python('*****@*****.**')
     nt.assert_equal(res, ['*****@*****.**'])
 def test_to_python_nothing(self):
     field = MultiEmailField()
     res = field.to_python('')
     nt.assert_equal(res, [])
Exemple #7
0
 def test_to_python_more(self):
     field = MultiEmailField()
     res = field.to_python("[email protected], [email protected], [email protected]")
     nt.assert_equal(res, ["*****@*****.**", "*****@*****.**", "*****@*****.**"])