module unit.calendar.gregorian.timetype.timetype

class unit.calendar.gregorian.timetype.timetype.describe_gregoriantimetype[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

setUp()[source]

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

test_converts_time_to_string()[source]
test_parses_time_from_string()[source]
test_raises_ValueError_when_parsing_invalid_time()[source]
test_raises_ValueError_when_parsing_badly_formatted_time()[source]
test_formats_period_to_string()[source]
test_returns_min_time()[source]
test_returns_max_time()[source]
test_get_weekday()[source]
test_get_min_zoom_delta()[source]
test_is_weekend_day()[source]
class unit.calendar.gregorian.timetype.timetype.describe_gregorian_time_type_delta_formatting[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

setUp()[source]

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

test_format_delta_method()[source]
test_format_one_minute_delta()[source]
test_format_two_minutes_delta()[source]
test_format_one_hour_delta()[source]
test_format_two_hour_delta()[source]
test_format_one_day_delta()[source]
test_format_two_days_delta()[source]
test_format_one_hour_one_minute_delta()[source]
test_format_one_hour_two_minutes_delta()[source]
test_format_one_day_one_hour_delta()[source]
test_format_one_day_two_hour_delta()[source]
test_format_two_days_two_hour_delta()[source]
test_format_two_days_two_hour_one_minute_delta()[source]
test_format_two_days_two_hour_two_minutes_delta()[source]
test_format_hundred_days_one_minute_delta()[source]
test_format_2_years_2_months()[source]
test_format_overlapping_events()[source]
create_point_period(day, month, year, hour, minute)[source]
get_days_delta(days=0, hours=0, minutes=0)[source]
class unit.calendar.gregorian.timetype.timetype.describe_gregorian_time_navigation_functions[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

test_fit_week_should_display_the_week_of_the_day_that_is_in_the_center()[source]
test_fit_week_sunday_start_should_display_the_week_of_the_day_that_is_in_the_center()[source]
test_fit_first_millennium_should_display_the_millennium_that_is_in_the_center()[source]
test_fit_millennium_should_display_the_millennium_that_is_in_the_center()[source]
test_fit_last_millennium_should_display_the_millennium_that_is_in_the_center()[source]
test_move_page_smart_not_smart_forward()[source]
test_move_page_smart_not_smart_backward()[source]
test_move_page_smart_month_forward()[source]
test_move_page_smart_month_forward_beyond_limit()[source]
test_move_page_smart_month_backward()[source]
test_move_page_smart_month_backward_beyond_limit()[source]
test_move_page_smart_month_over_year_boundry_backward()[source]
test_move_page_smart_year_forward()[source]
test_move_page_smart_year_forward_beyond_limit()[source]
test_move_page_smart_year_backward()[source]
test_move_page_smart_year_backward_beyond_limit()[source]
test_move_year_forward()[source]
test_move_year_backward()[source]
test_move_month_forward()[source]
test_move_month_backward()[source]
test_move_week_forward()[source]
test_move_week_backward()[source]
assert_navigation_raises(exception, fn, start, end)[source]
when_navigating(fn, start, end, week_starts_on_monday=True)[source]
then_period_becomes(start, end)[source]
class unit.calendar.gregorian.timetype.timetype.describe_gregorian_time_duplicate_function[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

test_move_period_num_days_adds_given_number_of_days()[source]
test_move_period_num_weeks_adds_given_number_of_weeks()[source]
test_move_period_num_months_adds_given_number_of_months()[source]
test_move_period_num_months_can_handle_year_boundries_up()[source]
test_move_period_num_months_can_handle_year_boundries_down()[source]
test_move_period_num_months_returns_none_if_day_does_not_exist()[source]
test_move_period_works_if_period_is_whole_month_case_1()[source]
test_move_period_works_if_period_is_whole_month_case_2()[source]
test_move_period_works_if_period_is_whole_year()[source]
test_move_period_num_years_adds_given_number_of_years()[source]
test_move_period_num_years_returns_none_if_year_does_not_exist()[source]
setUp()[source]

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