testing.unit.test_dup_time module

class testing.unit.test_dup_time.TimeTest[source]

Bases: object

testCmp()[source]

Test time comparisons

testCmp_separator()[source]

Like testCmp but with new separator

testConversion()[source]

test timetostring and stringtotime

testConversion_separator()[source]

Same as testConversion, but change time Separator

testConvertion()[source]
testGenericString()[source]

Test genstrtotime, conversion of arbitrary string to time

testGenericStringErrors()[source]

Test genstrtotime on some bad strings

testIntervals()[source]

Test converting strings to intervals

testIntervalsComposite()[source]

Like above, but allow composite intervals

testPrettyIntervals()[source]

Test printable interval conversion

testStringtotime()[source]

Test converting string to time

class testing.unit.test_dup_time.TimeTest1(methodName='runTest')[source]

Bases: TimeTest, UnitTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

class testing.unit.test_dup_time.TimeTest2(methodName='runTest')[source]

Bases: TimeTest, UnitTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.