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