'Test plurals with ngettext. French differs from English in that 0 is singular.'

@translation.override('fr')
def test_plural(self):

    self.assertEqual((ngettext('%d    year', '%d    years', 0) % 0), '0    ann\xc3\xa9e')
    self.assertEqual((ngettext('%d    year', '%d    years', 2) % 2), '2    ann\xc3\xa9es')
    self.assertEqual((ngettext('%(size)d    byte', '%(size)d    bytes', 0) % {'size': 0}), '0    octet')
    self.assertEqual((ngettext('%(size)d    byte', '%(size)d    bytes', 2) % {'size': 2}), '2    octets')
