예제 #1
0
def test_legal_basic():
    assert isitanemail('*****@*****.**')
예제 #2
0
def test_illegal_no_tld():
    assert not isitanemail("ab@cd")
예제 #3
0
def test_isitanemail_ask():
	e = '*****@*****.**'
	print 'Returned for %s:' % e, isitanemail(e)
	assert raw_input('Ok? ') == 'y'
예제 #4
0
def test_illegal_no_tld():
    assert not isitanemail('ab@cd')