def test_detect_include_taboo_string_in_email_dot_dot(self):
     result = uif.check_email("*****@*****.**")
     self.assertFalse(result.get_result())
     self.assertEqual(result.get_index(), 14)
 def test_detect_include_2bite_charactor_on_head_of_email(self):
     result = uif.check_email("うな[email protected]")
     self.assertFalse(result.get_result())
     self.assertEqual(result.get_index(), 5)  # unicodeは3バイトコード
 def test_detect_include_2bite_charactor_on_tail_of_email(self):
     result = uif.check_email("[email protected]む")
     self.assertFalse(result.get_result())
     self.assertEqual(result.get_index(), 17)
 def test_decide_correct_email_format_dot_foo_dot_co_dot_jp(self):
     result = uif.check_email("*****@*****.**")
     self.assertTrue(result.get_result())
     self.assertEqual(result.get_index(), -1)
 def test_detect_include_nbsp_in_email(self):
     result = uif.check_email("u na [email protected]")
     self.assertFalse(result.get_result())
     self.assertEqual(result.get_index(), 4)
 def test_detect_include_taboo_string_in_email_dot_dot(self):
     result = uif.check_email("*****@*****.**")
     self.assertFalse(result.get_result())
     self.assertEqual(result.get_index(), 14)
 def test_decide_correct_email_format_dot_jp(self):
     result = uif.check_email("*****@*****.**")
     self.assertTrue(result.get_result())
     self.assertEqual(result.get_index(),-1)
 def test_detect_include_2bite_charactor_on_tail_of_email(self):
     result = uif.check_email("[email protected]む")
     self.assertFalse(result.get_result())
     self.assertEqual(result.get_index(), 17)
 def test_detect_include_2bite_charactor_on_head_of_email(self):
     result = uif.check_email("うな[email protected]")
     self.assertFalse(result.get_result())
     self.assertEqual(result.get_index(), 5)  # unicodeは3バイトコード
 def test_detect_include_nbsp_in_email(self):
     result = uif.check_email("u na [email protected]")
     self.assertFalse(result.get_result())
     self.assertEqual(result.get_index(), 4)
 def test_decide_correct_email_format_dot_foo_dot_co_dot_jp(self):
     result = uif.check_email("*****@*****.**")
     self.assertTrue(result.get_result())
     self.assertEqual(result.get_index(), -1)
 def test_decide_correct_email_format_dot_jp(self):
     result = uif.check_email("*****@*****.**")
     self.assertTrue(result.get_result())
     self.assertEqual(result.get_index(), -1)