Пример #1
0
 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
 def test_not_so_far(self):
     a = "Good morning"
     b = "Good afternoon"
     self.assertEqual(is_similar(a, b), False)
Пример #3
0
 def test_close(self):
     a = "You are wonderful"
     b = "You're wonderful"
     self.assertEqual(is_similar(a, b), True)
Пример #4
0
 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)