Пример #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, ["*****@*****.**", "*****@*****.**", "*****@*****.**"])