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(()), "")
Beispiel #5
0
 def test_multiple_suggs(self):
     """Multiple suggestions."""
     self.assertEqual(get_suggestion_string(('0', '1')),
                      ". Did you mean 0, 1?")
Beispiel #6
0
 def test_same_sugg(self):
     """Identical suggestion."""
     self.assertEqual(get_suggestion_string(('0', '0')),
                      ". Did you mean 0, 0?")
Beispiel #7
0
 def test_one_sugg(self):
     """Single suggestion."""
     self.assertEqual(get_suggestion_string(('0', )), ". Did you mean 0?")
Beispiel #8
0
 def test_no_sugg(self):
     """Empty list of suggestions."""
     self.assertEqual(get_suggestion_string(()), "")