Package pytils :: Package test :: Module test_numeral :: Class ChoosePluralTestCase
[hide private]
[frames] | no frames]

Class ChoosePluralTestCase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   ChoosePluralTestCase

Test case for pytils.numeral.choose_plural

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException


Instance Methods [hide private]
  setUp(self)
Setting up environment for tests
  checkChoosePlural(self, amount, estimated)
Checks choose_plural
  testChoosePlural(self)
Unit-test for choose_plural
  testChoosePluralExceptions(self)
Unit-test for testing choos_plural's exceptions
  testChoosePluralVariantsInStr(self)

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, tearDown

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

setUp(self)

source code 
Setting up environment for tests
Overrides: unittest.TestCase.setUp

checkChoosePlural(self, amount, estimated)

source code 
Checks choose_plural

testChoosePlural(self)

source code 
Unit-test for choose_plural

testChoosePluralExceptions(self)

source code 
Unit-test for testing choos_plural's exceptions

testChoosePluralVariantsInStr(self)

source code 
None