示例#1
0
 def test_plus(self):
     self.assertEqual('true', solution('*****@*****.**'))
示例#2
0
 def test_quoted(self):
     self.assertEqual('true', solution('"h@x"@example.com'))
示例#3
0
 def test_quoted_bad(self):
     self.assertEqual('false', solution('is"h@x"*****@*****.**'))
示例#4
0
 def test_dot(self):
     self.assertEqual('true', solution('*****@*****.**'))
示例#5
0
 def test_more_dots(self):
     self.assertEqual('true', solution('*****@*****.**'))
示例#6
0
 def test_bad_tail(self):
     self.assertEqual('false', solution('[email protected]!'))
示例#7
0
 def test_provided_4(self):
     self.assertEqual('true', solution('*****@*****.**'))
示例#8
0
 def test_provided_3(self):
     self.assertEqual('false', solution('admin#codeeval.com'))
示例#9
0
 def test_provided_2(self):
     self.assertEqual('false', solution('this is not an email id'))
示例#10
0
 def test_provided_1(self):
     self.assertEqual('true', solution('*****@*****.**'))