tests/email_validate.py
branchdevel
changeset 181 8a5be61f34c5
parent 167 374f34025fa1
child 182 e6af45edff5a
--- a/tests/email_validate.py	Thu Feb 23 16:52:06 2012 +0100
+++ b/tests/email_validate.py	Thu Feb 23 16:53:32 2012 +0100
@@ -49,8 +49,10 @@
 
     def testInvalidDomain(self):
         '''invalid Domainname'''
-        with self.assertRaises(InvalidMail) as e:
+        with self.assertRaises(InvalidMail):
             vEmail(['x@&.de'],None)
+    def testString(self):
+        self.assertEqual(vEmail('x@test.de', None),"x@test.de")
 
     def testDoubles(self):
         self.assertEqual(vEmail(['x@test.de','x@test.de'],None),["x@test.de"])