Created
April 5, 2015 14:43
-
-
Save smspillaz/f8c8763e0ebfac743144 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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