class OptionalPluralCheckTest(TestCase): def setUp(self): self.check = OptionalPluralCheck() def test_none(self): self.assertFalse( self.check.check_source( ['text'], MockUnit(), ) ) def test_plural(self): self.assertFalse( self.check.check_source( ['text', 'texts'], MockUnit(), ) ) def test_failing(self): self.assertTrue( self.check.check_source( ['text(s)'], MockUnit(), ) )
class OptionalPluralCheckTest(TestCase): def setUp(self): self.check = OptionalPluralCheck() def test_none(self): self.assertFalse( self.check.check_source( ['text'], '', Unit(), ) ) def test_plural(self): self.assertFalse( self.check.check_source( ['text', 'texts'], '', Unit(), ) ) def test_failing(self): self.assertTrue( self.check.check_source( ['text(s)'], '', Unit(), ) )
class OptionalPluralCheckTest(TestCase): def setUp(self): self.check = OptionalPluralCheck() def test_none(self): self.assertFalse(self.check.check_source(["text"], MockUnit())) def test_plural(self): self.assertFalse(self.check.check_source(["text", "texts"], MockUnit())) def test_failing(self): self.assertTrue(self.check.check_source(["text(s)"], MockUnit()))
def setUp(self): self.check = OptionalPluralCheck()