예제 #1
0
 def test_to_python_one(self):
     field = MultiEmailField()
     res = field.to_python('*****@*****.**')
     nt.assert_equal(res, ['*****@*****.**'])
예제 #2
0
 def test_to_python_more(self):
     field = MultiEmailField()
     res = field.to_python('[email protected], [email protected], [email protected]')
     nt.assert_equal(res,
                     ['*****@*****.**', '*****@*****.**', '*****@*****.**'])
예제 #3
0
 def test_to_python_nothing(self):
     field = MultiEmailField()
     res = field.to_python('')
     nt.assert_equal(res, [])
예제 #4
0
 def test_to_python_more(self):
     field = MultiEmailField()
     res = field.to_python('[email protected], [email protected], [email protected]')
     nt.assert_equal(res,
                     ['*****@*****.**', '*****@*****.**', '*****@*****.**'])
예제 #5
0
 def test_to_python_one(self):
     field = MultiEmailField()
     res = field.to_python('*****@*****.**')
     nt.assert_equal(res, ['*****@*****.**'])
예제 #6
0
 def test_to_python_nothing(self):
     field = MultiEmailField()
     res = field.to_python('')
     nt.assert_equal(res, [])
예제 #7
0
 def test_to_python_more(self):
     field = MultiEmailField()
     res = field.to_python("[email protected], [email protected], [email protected]")
     nt.assert_equal(res, ["*****@*****.**", "*****@*****.**", "*****@*****.**"])