module unit.db.strategies

class unit.db.strategies.ContainerStrategiesTestCase[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

setUp()[source]

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

a_subevent(time_period=TimePeriod<GregorianTime(2456659, 0), GregorianTime(2456668, 0)>)[source]
class unit.db.strategies.describe_default_container_strategy[source]

Bases: unit.db.strategies.ContainerStrategiesTestCase

test_disallsows_ends_today_subevents()[source]
test_a_subevent_can_be_registredy()[source]
test_two_nonoverlapping_subevents_can_be_registred()[source]
test_two_overlapping_subevents_can_be_registred()[source]
test_an_event_cannot_be_registred()[source]
test_none_cannot_be_registred()[source]
test_a_subevent_is_only_registered_once()[source]
test_a_subevent_can_be_unregistred()[source]
test_a_second_subevent_cn_be_unregistred()[source]
test_an_object_not_registered_is_ignored_when_unregistred()[source]
test_the_timeperiod_is_updated_when_the_subevent_time_period_changes()[source]
class unit.db.strategies.describe_extended_container_strategy[source]

Bases: unit.db.strategies.ContainerStrategiesTestCase

test_allsows_ends_today_subevents()[source]
test_a_subevent_can_be_registred()[source]
test_two_nonoverlapping_subevents_can_be_registred()[source]
test_two_overlapping_subevents_can_be_registred()[source]
test_an_event_cannot_be_registred()[source]
test_none_cannot_be_registred()[source]
test_a_subevent_is_only_registered_once()[source]
test_a_subevent_can_be_unregistred()[source]
test_a_second_subevent_can_be_unregistred()[source]
test_an_object_not_registered_is_ignored_when_unregistred()[source]
test_the_timeperiod_is_updated_when_the_subevent_time_period_changes()[source]
class unit.db.strategies.describe_default_container_startegy_[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

These tests should be merged into the class describe_default_container_startegy

test_construction()[source]
test_first_registered_event_decides_container_period()[source]
test_second_registered_event_expands_container_period()[source]
test_removing_one_event_contracts_container_period()[source]
test_updating_subevent_expands_container_period()[source]
test_adding_partial_overlapping_event_moves_overlapped_event_backwards()[source]
test_adding_partial_overlapping_event_moves_overlapped_event_forward()[source]
test_adding_event_with_same_period_moves_overlapped_event_forward()[source]
test_adding_event_with_same_start_moves_overlapped_event_forward()[source]
test_overlapping_nonperiod_event_at_begining_moves_nonperiod_event_backwards()[source]
test_overlapping_nonperiod_event_at_end_moves_nonperiod_event_forward()[source]
given_container_with_two_events_with_nonoverlapping_periods()[source]
given_container_with_two_events_with_overlapping_periods()[source]
given_container_with_two_events_with_overlapping_periods_reversed_order()[source]
given_container_with_two_events_with_same_periods()[source]
given_container_with_two_events_with_same_start_time()[source]
given_strategy_with_container()[source]
given_event_overlapping_point_event()[source]
given_event_overlapping_point_event2()[source]
given_two_overlapping_events()[source]
given_two_events_with_same_period()[source]
given_two_events_with_same_start_time()[source]
given_two_events_with_nonoverlapping_periods()[source]
given_subevent1()[source]
assert_equal_start(obj1, obj2)[source]
assert_equal_end(obj1, obj2)[source]
assert_start_equals_end(obj1, obj2)[source]
assert_start_equals_start(obj1, obj2)[source]
time(tm)[source]
setUp()[source]

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

new_id()[source]