def test17(self): self.assertTrue(email_validator("*****@*****.**")) # testing two .. not is a row.
def test1(self): self.assertFalse(email_validator("hellome.com")) #testing no @ presence
def test16(self): self.assertFalse(email_validator("*****@*****.**")) #testing for two .. in a row in name
def test4(self): self.assertFalse(email_validator("william@%s" % ("a" * 257))) #testing domain length: too long
def test15(self): self.assertFalse(email_validator("[email protected]&#*?!;^om")) #testing characters outside the required characters for domain
def test20(self): self.assertFalse(email_validator("will\"!,:\"dfkjf!,:df\"fdkdjf\"@me.com")) # !,: can't exist outside of " "
def test_email_validator(): assert email_validator('*****@*****.**') assert email_validator('juju@[email protected]')
def test10(self): self.assertFalse(email_validator("[email protected]")) #domain ends with -
def test11(self): self.assertTrue(email_validator("*****@*****.**")) #domain doesn't begin or end with -
def test8(self): self.assertTrue(email_validator("*****@*****.**")) #testing name length: ok
def test9(self): self.assertFalse(email_validator("*****@*****.**")) #domain begins with -
def test7(self): self.assertFalse(email_validator("*****@*****.**" % ("a" * 129))) #testing name length: too long
def test6(self): self.assertFalse(email_validator("@me.com")) #testing name length: too short
def test5(self): self.assertTrue(email_validator("*****@*****.**")) #testing domain length: ok
def test18(self): self.assertFalse(email_validator("willi\"*****@*****.**")) #testing one " will fail
def test12(self): self.assertTrue(email_validator("*****@*****.**")) #testing required characters name, without "
def test19(self): self.assertTrue(email_validator("willi\"!,:fd\"dfj\"!,:\"*****@*****.**")) # !,: can exist inside " "
def test13(self): self.assertFalse(email_validator("willi&#*?!;^@me.com")) #testing some characters outside of a-z0-9.\"_- for name
def test2(self): self.assertTrue(email_validator("*****@*****.**")) #testing @ presence
def test14(self): self.assertTrue(email_validator("[email protected]_-9om")) #testing required characters for domain
def test_email_validator(): assert email_validator("*****@*****.**") == True assert email_validator("juno@[email protected]") == False
def test3(self): self.assertFalse(email_validator("william@me")) #testing domain length: too short