Package pytils :: Package test :: Module test_numeral :: Class SumStringTestCase
[hide private]

Class SumStringTestCase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   SumStringTestCase

Test case for pytils.numeral.sum_string

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Setting up environment for tests
source code
 
ckMaleOldStyle(self, amount, estimated)
Checks sum_string with male gender with old-style genders (i.e.
source code
 
ckMale(self, amount, estimated)
Checks sum_string with male gender
source code
 
ckFemaleOldStyle(self, amount, estimated)
Checks sum_string with female gender wuth old-style genders (i.e.
source code
 
ckFemale(self, amount, estimated)
Checks sum_string with female gender
source code
 
testSumStringOldStyle(self)
Unit-test for sum_string with old-style genders
source code
 
testSumString(self)
Unit-test for sum_string
source code
 
testSumStringExceptions(self)
Unit-test for testing sum_string's exceptions
source code

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

ckMaleOldStyle(self, amount, estimated)

source code 
Checks sum_string with male gender with old-style genders (i.e. ints)

ckFemaleOldStyle(self, amount, estimated)

source code 
Checks sum_string with female gender wuth old-style genders (i.e. ints)