TestConvertDate

class tests.test_converters.TestConvertDate(methodName='runTest')[source]

Test cases for date/time converter functions/classes

__init__(methodName='runTest')

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

Methods

test_convert_date_int()

Test convert_datetime() - converting integer unix time into datetime

test_convert_date_int_ms()

Test convert_datetime() - converting integer unix time (milliseconds) into datetime

test_convert_date_int_str()

Test convert_datetime() - converting string unix time into datetime

test_convert_date_str()

Test converting ISO date string into datetime

test_convert_date_str_2()

Test converting no-timezone ISO date string into datetime

test_convert_date_str_3()

Test converting no-timezone human date string (spaces) into datetime

test_convert_date_str_4()

Test converting no-timezone human date string (slashes) into datetime

test_convert_unixtime_int()

Test convert_unixtime_datetime() - converting integer unix time into datetime

test_convert_unixtime_int_ms()

Test convert_datetime() - converting integer unix time (milliseconds) into datetime

test_convert_unixtime_int_str()

Test convert_unixtime_datetime() - converting string unix time into datetime

Attributes

Attributes