def test_plus(self): self.assertEqual('true', solution('*****@*****.**'))
def test_quoted(self): self.assertEqual('true', solution('"h@x"@example.com'))
def test_quoted_bad(self): self.assertEqual('false', solution('is"h@x"*****@*****.**'))
def test_dot(self): self.assertEqual('true', solution('*****@*****.**'))
def test_more_dots(self): self.assertEqual('true', solution('*****@*****.**'))
def test_bad_tail(self): self.assertEqual('false', solution('[email protected]!'))
def test_provided_4(self): self.assertEqual('true', solution('*****@*****.**'))
def test_provided_3(self): self.assertEqual('false', solution('admin#codeeval.com'))
def test_provided_2(self): self.assertEqual('false', solution('this is not an email id'))
def test_provided_1(self): self.assertEqual('true', solution('*****@*****.**'))