-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for basic Python implementation
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# for testing only; add the python MailChecker to the system path | ||
import os, sys | ||
sys.path.insert(0, '../platform/python/') | ||
|
||
# import MailChecker, create instance, check emails | ||
import MailChecker | ||
|
||
m = MailChecker.MailChecker() | ||
|
||
print m.is_valid('bla@example.com') | ||
print m.is_valid('bla@yourlms.biz') | ||
print m.is_valid('example@you.it') | ||
print m.is_valid('bla@hotmail.com') | ||
print m.is_valid('bla@yui.it') | ||
print m.is_valid('') |