class PuctuationSpacingCheckTest(CheckTestCase): check = PuctuationSpacingCheck() default_lang = 'fr' def setUp(self): super(PuctuationSpacingCheckTest, self).setUp() self.test_good_matching = ( 'string? string! string: string;', 'string ? string\u202F! string ; string\u00A0:', '') self.test_good_none = ('string http://example.com', 'string http://example.com', '') self.test_failure_1 = ('string', 'string!', '') self.test_failure_2 = ('string', 'string\u00A0? string;', '') self.test_failure_3 = ('string', 'string\u00A0; string?', '')
class PuctuationSpacingCheckTest(CheckTestCase): check = PuctuationSpacingCheck() default_lang = "fr" def setUp(self): super().setUp() self.test_good_matching = ( "string? string! string: string;", "string ? string\u202F! string ; string\u00A0:", "", ) self.test_good_none = ( "string &end; http://example.com", "string &end; & http://example.com", "", ) self.test_failure_1 = ("string", "string!", "") self.test_failure_2 = ("string", "string\u00A0? string;", "") self.test_failure_3 = ("string", "string\u00A0; string?", "")