class EndSpaceCheckTest(CheckTestCase): check = EndSpaceCheck() def setUp(self): super(EndSpaceCheckTest, self).setUp() self.test_good_matching = ('string ', 'string ', '') self.test_good_ignore = ('.', ' ', '') self.test_good_none = (' The ', ' ', '') self.test_failure_1 = ('string ', 'string', '') self.test_failure_2 = ('string', 'string ', '')
class EndSpaceCheckTest(CheckTestCase): check = EndSpaceCheck() def setUp(self): super().setUp() self.test_good_matching = ("string ", "string ", "") self.test_good_ignore = (".", " ", "") self.test_good_none = (" The ", " ", "") self.test_failure_1 = ("string ", "string", "") self.test_failure_2 = ("string", "string ", "")
class EndSpaceCheckTest(CheckTestCase): check = EndSpaceCheck() def setUp(self): super(EndSpaceCheckTest, self).setUp() self.test_good_matching = ('string ', 'string ', '') self.test_good_ignore = ('.', ' ', '') self.test_good_none = (' The ', ' ', '') self.test_failure_1 = ('string ', 'string', '') self.test_failure_2 = ('string', 'string ', '') def test_french(self): self.do_test(False, ('Text!', 'Texte !', ''), 'fr') self.do_test(True, ('Text', 'Texte ', ''), 'fr')