def _enum_values_result_should_be_correct() -> None: expected_list = [1, 2, 3] result_values = [] for enum_thing in TestEnum.values(): result_values.append(enum_thing) CommonAssertionUtils.list_contents_are_same(result_values, expected_list)
def _enum_should_be_iterable() -> None: expected_list = [ 'TEST_VALUE_ONE', 'TEST_VALUE_TWO', 'TEST_VALUE_THREE' ] result_values = [] for enum_thing in TestEnum: result_values.append(enum_thing) CommonAssertionUtils.list_contents_are_same(result_values, expected_list)
def enum_names_result_should_be_correct(): expected_list = [ 'TEST_VALUE_ONE', 'TEST_VALUE_TWO', 'TEST_VALUE_THREE' ] result_values = [] for enum_thing in TestEnum.names(): result_values.append(enum_thing) CommonAssertionUtils.list_contents_are_same(result_values, expected_list)
def _enum_items_result_should_be_correct() -> None: expected_list = [ TestEnum.TEST_VALUE_ONE, TestEnum.TEST_VALUE_TWO, TestEnum.TEST_VALUE_THREE ] result_values = [] for enum_thing in TestEnum.items(): result_values.append(enum_thing) CommonAssertionUtils.list_contents_are_same(result_values, expected_list)