def test_multiple_suggs(self):
     """Multiple suggestions."""
     self.assertEqual(
         get_suggestion_string(('0', '1')), ". Did you mean 0, 1?")
 def test_one_sugg(self):
     """Single suggestion."""
     self.assertEqual(get_suggestion_string(('0',)), ". Did you mean 0?")
 def test_same_sugg(self):
     """Identical suggestion."""
     self.assertEqual(
         get_suggestion_string(('0', '0')), ". Did you mean 0, 0?")
 def test_no_sugg(self):
     """Empty list of suggestions."""
     self.assertEqual(get_suggestion_string(()), "")
Esempio n. 5
0
 def test_multiple_suggs(self):
     """Multiple suggestions."""
     self.assertEqual(get_suggestion_string(('0', '1')),
                      ". Did you mean 0, 1?")
Esempio n. 6
0
 def test_same_sugg(self):
     """Identical suggestion."""
     self.assertEqual(get_suggestion_string(('0', '0')),
                      ". Did you mean 0, 0?")
Esempio n. 7
0
 def test_one_sugg(self):
     """Single suggestion."""
     self.assertEqual(get_suggestion_string(('0', )), ". Did you mean 0?")
Esempio n. 8
0
 def test_no_sugg(self):
     """Empty list of suggestions."""
     self.assertEqual(get_suggestion_string(()), "")