module unit.canvas.data.transactions

class unit.canvas.data.transactions.describe_transactions[source]

Bases: timelinelib.test.cases.unit.UnitTestCase

test_has_initial_value()[source]
test_value_changes_after_new_transaction()[source]
test_nested_transactions_only_stores_first()[source]
test_value_is_temporarily_changed_during_transaction()[source]
test_inner_transaction_failure_only_affects_inner_transaction()[source]
test_has_initial_history()[source]
test_history_is_added()[source]
test_history_can_be_cleared()[source]
test_can_move_around_in_history()[source]
test_future_history_is_erased_when_new_transaction()[source]
test_history_is_pruned()[source]
test_status_reports_if_in_transaction()[source]
test_raises_exception_if_comitting_twice()[source]
test_raises_exception_if_rollbacking_twice()[source]
test_raises_exception_if_modifying_non_current_transaction()[source]
test_raises_exception_if_moving_in_history_while_in_transaction()[source]
test_raises_exception_if_moving_in_history_out_of_range()[source]
test_raises_exception_if_clearing_history_while_in_transaction()[source]
test_raises_exception_if_history_size_is_too_small()[source]
test_notifies_on_commit()[source]
test_notifies_on_move()[source]
test_notifies_on_clear()[source]
assertHasValue(value)[source]
assertRaisesTransactionError(name)[source]
setUp()[source]

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

class unit.canvas.data.transactions.ImmutableText[source]

Bases: str

append(text)[source]
exception unit.canvas.data.transactions.TestError[source]

Bases: Exception