Package pytils :: Package test :: Module test_dt :: Class DistanceOfTimeInWordsTestCase
[hide private]
[frames] | no frames]

Class DistanceOfTimeInWordsTestCase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   DistanceOfTimeInWordsTestCase

Test case for pytils.dt.distance_of_time_in_words

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException


Instance Methods [hide private]
  setUp(self)
Setting up environment for tests
  updateTime(self, _time)
Update all time-related values for current time
  ckDefaultAccuracy(self, typ, estimated)
Checks with default value for accuracy
  ckDefaultToTime(self, typ, accuracy, estimated)
Checks with default value of time
  testDOTIWDefaultAccuracy(self)
Unit-test for distance_of_time_in_words with default accuracy
  testDOTIWDefaultToTimeAcc1(self)
Unit-tests for distance_of_time_in_words with default to_time and accuracy=1
  testDOTIWDefaultToTimeAcc2(self)
Unit-tests for distance_of_time_in_words with default to_time and accuracy=2
  testDOTIWDefaultToTimeAcc3(self)
Unit-tests for distance_of_time_in_words with default to_time and accuracy=3
  testDOTWDatetimeType(self)
Unit-tests for testing datetime.datetime as input values
  testDOTIWExceptions(self)
Unit-tests for testings distance_of_time_in_words' exceptions

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

updateTime(self, _time)

source code 
Update all time-related values for current time

ckDefaultAccuracy(self, typ, estimated)

source code 
Checks with default value for accuracy

ckDefaultToTime(self, typ, accuracy, estimated)

source code 
Checks with default value of time

testDOTIWDefaultAccuracy(self)

source code 
Unit-test for distance_of_time_in_words with default accuracy

testDOTIWDefaultToTimeAcc1(self)

source code 
Unit-tests for distance_of_time_in_words with default to_time and accuracy=1

testDOTIWDefaultToTimeAcc2(self)

source code 
Unit-tests for distance_of_time_in_words with default to_time and accuracy=2

testDOTIWDefaultToTimeAcc3(self)

source code 
Unit-tests for distance_of_time_in_words with default to_time and accuracy=3

testDOTWDatetimeType(self)

source code 
Unit-tests for testing datetime.datetime as input values

testDOTIWExceptions(self)

source code 
Unit-tests for testings distance_of_time_in_words' exceptions