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_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

  2. test_catching_module_not_found_error_in_tests

  3. test_catching_name_error_in_tests

  4. test_catching_attribute_error_in_tests

  5. test_catching_type_error_in_tests

  6. test_catching_index_error_in_tests

  7. test_catching_key_error_in_tests

  8. test_catching_zero_division_error_in_tests

  9. test_catching_exceptions_in_tests

  10. test_catching_exceptions_w_messages

  11. test_catching_failure

  12. test_catching_success

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

  1. test_logical_true

  2. test_logical_false

  3. test_logical_identity

  4. test_logical_negation

  5. test_contradiction

  6. test_logical_conjunction

  7. test_project_second

  8. test_converse_non_implication

  9. test_negate_first

  10. test_logical_nand

  11. test_tautology

  12. test_logical_disjunction

  13. test_exclusive_disjunction

  14. test_material_non_implication

  15. test_project_first

  16. test_converse_implication

  17. test_negate_second

  18. test_logical_nor

  19. test_logical_equality

  20. test_material_implication

test_lists

  1. test_make_a_list_w_list_constructor

  2. test_make_a_list_w_square_brackets

  3. test_make_a_list_from_an_iterable

  4. test_attributes_and_methods_of_lists

  5. test_append_adds_to_a_list

  6. test_clear_empties_a_list

  7. test_copy_a_list

  8. test_count_number_of_times_item_is_in_a_list

  9. test_extend_makes_a_list_longer

  10. test_index_returns_position_of_item_in_a_list

  11. test_insert_places_item_at_given_index_in_a_list

  12. test_pop_removes_and_returns_last_item_in_a_list

  13. test_remove_first_instance_of_item_from_a_list

  14. test_reverse_a_list

  15. test_sort_a_list

  16. test_view_items_in_a_list

  17. test_view_parts_of_a_list

  18. test_index_error

test_list_comprehensions

  1. test_make_a_list_w_a_for_loop

  2. test_make_a_list_w_list_comprehensions

  3. test_list_comprehensions_w_conditions_i

  4. test_list_comprehensions_w_conditions_ii

test_dictionaries

  1. test_make_a_dictionary_w_dict_constructor

  2. test_make_a_dictionary_w_curly_braces

  3. test_make_a_dictionary_w_numbers_as_keys

  4. test_make_a_dictionary_w_booleans_as_keys

  5. test_make_a_dictionary_w_tuples_as_keys

  6. test_make_a_dictionary_w_lists_as_keys

  7. test_make_a_dictionary_w_sets_as_keys

  8. test_make_a_dictionary_w_dictionaries_as_keys

  9. test_attributes_and_methods_of_dictionaries

  10. test_clear_empties_a_dictionary

  11. test_copy_a_dictionary

  12. test_fromkeys_makes_a_dictionary_from_an_iterable

  13. test_get_value_of_key_from_a_dictionary

  14. test_pop_removes_key_and_returns_its_value_from_a_dictionary

  15. test_keys_of_a_dictionary

  16. test_pop_removes_and_returns_key_w_value_from_a_dictionary

  17. test_popitem_removes_and_returns_last_key_value_pair_from_a_dictionary

  18. test_setdefault_adds_key_w_a_default_value_to_a_dictionary

  19. test_update_a_dictionary

  20. test_values_of_a_dictionary

  21. test_key_error

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