예제 #1
0
파일: test_i18n.py 프로젝트: kennym/itools
 def test_bingo(self):
     a = "In the middle of nowhere"
     b = "In the middle of nowhere"
     self.assertEqual(is_similar(a, b), True)
예제 #2
0
파일: test_i18n.py 프로젝트: kennym/itools
 def test_not_so_far(self):
     a = "Good morning"
     b = "Good afternoon"
     self.assertEqual(is_similar(a, b), False)
예제 #3
0
파일: test_i18n.py 프로젝트: kennym/itools
 def test_close(self):
     a = "You are wonderful"
     b = "You're wonderful"
     self.assertEqual(is_similar(a, b), True)
예제 #4
0
파일: test_i18n.py 프로젝트: kennym/itools
 def test_different(self):
     a = "Good morning"
     b = "How do you do?"
     self.assertEqual(is_similar(a, b), False)
예제 #5
0
 def test_bingo(self):
     a = "In the middle of nowhere"
     b = "In the middle of nowhere"
     self.assertEqual(is_similar(a, b), True)
예제 #6
0
 def test_close(self):
     a = "You are wonderful"
     b = "You're wonderful"
     self.assertEqual(is_similar(a, b), True)
예제 #7
0
 def test_not_so_far(self):
     a = "Good morning"
     b = "Good afternoon"
     self.assertEqual(is_similar(a, b), False)
예제 #8
0
 def test_different(self):
     a = "Good morning"
     b = "How do you do?"
     self.assertEqual(is_similar(a, b), False)