Ejemplo n.º 1
0
 def test_plural__with_zero__list(self):
     self.assertEqual('0 units', helpers.plural([], 'unit'))
Ejemplo n.º 2
0
 def test_plural__with_two__int(self):
     self.assertEqual('2 units', helpers.plural(2, 'unit'))
Ejemplo n.º 3
0
 def test_plural__with_two__list(self):
     self.assertEqual('2 units', helpers.plural([1, 2], 'unit'))
Ejemplo n.º 4
0
 def test_plural__with_one__int(self):
     self.assertEqual('1 unit', helpers.plural(1, 'unit'))
Ejemplo n.º 5
0
 def test_plural__with_one__list(self):
     self.assertEqual('1 unit', helpers.plural([1], 'unit'))
Ejemplo n.º 6
0
 def test_plural__with_zero__list(self):
     self.assertEqual('0 units', helpers.plural([], 'unit'))
Ejemplo n.º 7
0
 def test_plural__with_two__list(self):
     self.assertEqual('2 units', helpers.plural([1, 2], 'unit'))
Ejemplo n.º 8
0
 def test_plural__with_two__int(self):
     self.assertEqual('2 units', helpers.plural(2, 'unit'))
Ejemplo n.º 9
0
 def test_plural__with_one__list(self):
     self.assertEqual('1 unit', helpers.plural([1], 'unit'))
Ejemplo n.º 10
0
 def test_plural__with_one__int(self):
     self.assertEqual('1 unit', helpers.plural(1, 'unit'))