catalog of tests


test_failure

test_calculator

  1. test_addition

  2. test_subtraction

  3. test_multiplication

  4. test_division

  5. test_calculator_tests

test_telephone

  1. test_passing_a_string

  2. test_passing_a_class

  3. test_passing_none

  4. test_passing_a_boolean

  5. test_passing_an_integer

  6. test_passing_a_float

  7. test_passing_a_tuple

  8. test_passing_a_list

  9. test_passing_a_dictionary

test_person_factory

  1. test_function_w_keyword_arguments

  2. test_function_w_default_keyword_arguments

test_exceptions

  1. test_catching_module_not_found_error_in_tests

  2. test_catching_name_error_in_tests

  3. test_catching_attribute_error_in_tests

  4. test_catching_type_error_in_tests

  5. test_catching_index_error_in_tests

  6. test_catching_key_error_in_tests

  7. test_catching_zero_division_error_in_tests

  8. test_catching_exceptions_in_tests

  9. test_catching_exceptions_w_messages

  10. test_catching_failure

  11. test_catching_success

test_sleep_duration

  1. test_string_splitting

  2. test_converting_strings_to_numbers

  3. test_floor_aka_integer_division

  4. test_the_modulo_operation

  5. test_datetime_objects

  6. test_get_datetime

  7. test_duration_w_hours

  8. test_duration_w_hours_and_minutes

  9. test_duration_calculation

  10. test_duration_w_an_earlier_wake_than_sleep_time

  11. test_duration_w_date_and_time

test_exceptions

  1. test_module_not_found_error

test_assertion_error

  1. test_assertion_error_w_none

  2. test_assertion_error_w_false

  3. test_assertion_error_w_true

  4. test_assertion_error_w_equality

test_attribute_error

  1. test_attribute_error_w_variables

  2. test_attribute_error_w_functions

  3. test_attribute_error_w_class_attributes

  4. test_attribute_error_w_class_methods

test_type_error

  1. test_type_error_w_non_callables

  2. test_type_error_w_function_signatures

  3. test_type_error_w_objects_that_do_not_mix

test_none

  1. test_what_is_none

  2. test_is_none_a_boolean

  3. test_is_none_an_integer

  4. test_is_none_a_float

  5. test_is_none_a_string

  6. test_is_none_a_tuple

  7. test_is_none_a_list

  8. test_is_none_a_set

  9. test_is_none_a_dictionary

test_booleans

  1. test_what_is_false

  2. test_what_is_true

test_truth_table

test_lists

  1. test_making_a_list

  2. test_adding_an_item_to_a_list

  3. test_removing_an_item_from_a_list

  4. test_removing_the_last_item_from_a_list

  5. test_getting_items_from_a_list

  6. test_index_error

  7. test_list_attributes_and_methods

test_list_comprehensions

  1. test_making_a_list_from_an_iterable

  2. test_making_a_list_w_a_for_loop

  3. test_making_lists_w_list_comprehensions

test_functions

  1. test_functions

  2. test_singleton_functions

  3. test_passthrough_functions

  4. test_functions_w_positional_arguments

  5. test_functions_w_keyword_arguments

  6. test_functions_w_positional_and_keyword_arguments

test_classes

  1. test_classes_w_initializers

  2. test_classes_attributes_methods