Skip to content

Instantly share code, notes, and snippets.

@smspillaz
Created April 5, 2015 14:43
Show Gist options
  • Save smspillaz/f8c8763e0ebfac743144 to your computer and use it in GitHub Desktop.
Save smspillaz/f8c8763e0ebfac743144 to your computer and use it in GitHub Desktop.
@parameterized.expand(_KNOWN_STYLES)
def test_suggest_correction_docstring(self, style):
"""Correct slplling errors inside docstring."""
def get_replacement():
self._spellcheck_lint("{s}{e}\n\"\"\"splelling mistake\"\"\")\n",
style)
exception = self.assertRaises(LinterFailure, get_replacement)
self.assertEqual(replacement(exception),
(2,
style_format("\"\"\"spelling mistake\"\"\")\n",
style)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment