Skip to content

Commit

Permalink
Test for basic Python implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
hslatman committed Sep 28, 2015
1 parent ef211f4 commit 817f768
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/platform.python.test.py
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('')

0 comments on commit 817f768

Please sign in to comment.