class PluralsCheckTest(TestCase): def setUp(self): self.check = PluralsCheck() def test_none(self): self.assertFalse( self.check.check_target(["string"], ["string"], MockUnit("plural_none")) ) def test_empty(self): self.assertFalse( self.check.check_target( ["string", "plural"], ["", ""], MockUnit("plural_empty") ) ) def test_hit(self): self.assertTrue( self.check.check_target( ["string", "plural"], ["string", ""], MockUnit("plural_partial_empty") ) ) def test_good(self): self.assertFalse( self.check.check_target( ["string", "plural"], ["translation", "trplural"], MockUnit("plural_good"), ) )
class PluralsCheckTest(TestCase): def setUp(self): self.check = PluralsCheck() def test_none(self): self.assertFalse( self.check.check_target( ['string'], ['string'], MockUnit('plural_none'), )) def test_empty(self): self.assertFalse( self.check.check_target( ['string', 'plural'], ['', ''], MockUnit('plural_empty'), )) def test_hit(self): self.assertTrue( self.check.check_target( ['string', 'plural'], ['string', ''], MockUnit('plural_partial_empty'), )) def test_good(self): self.assertFalse( self.check.check_target( ['string', 'plural'], ['translation', 'trplural'], MockUnit('plural_good'), ))
class PluralsCheckTest(TestCase): def setUp(self): self.check = PluralsCheck() def test_none(self): self.assertFalse(self.check.check_target( ['string'], ['string'], MockUnit('plural_none'), )) def test_empty(self): self.assertFalse(self.check.check_target( ['string', 'plural'], ['', ''], MockUnit('plural_empty'), )) def test_hit(self): self.assertTrue(self.check.check_target( ['string', 'plural'], ['string', ''], MockUnit('plural_partial_empty'), )) def test_good(self): self.assertFalse(self.check.check_target( ['string', 'plural'], ['translation', 'trplural'], MockUnit('plural_good'), ))