Skip to content

Commit

Permalink
unit tests of buildbot.status.web.base.plural() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Elmir Jagudin committed May 21, 2013
1 parent e947223 commit 536cbf7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions master/buildbot/test/unit/test_status_web_base.py
Expand Up @@ -80,3 +80,11 @@ def test_getRequestCharset_other_params(self):
'application/x-www-form-urlencoded ; charset=UTF-16 ; foo=bar',
'UTF-16')

def test_plural_zero(self):
self.assertEqual(base.plural("car", "cars", 0), "0 cars")

def test_plural_one(self):
self.assertEqual(base.plural("car", "cars", 1), "1 car")

def test_plural_many(self):
self.assertEqual(base.plural("car", "cars", 34), "34 cars")

0 comments on commit 536cbf7

Please sign in to comment.