From 3050f0b8d9e354178385972ee4d4c0ad2adf4ed3 Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Sun, 29 Sep 2024 13:50:31 +0200 Subject: [PATCH] Python: regen specs from KST to remove redundant newlines --- spec/python/test_bcd_user_type_be.py | 1 - spec/python/test_bcd_user_type_le.py | 1 - spec/python/test_bits_byte_aligned.py | 1 - spec/python/test_bits_enum.py | 1 - spec/python/test_bits_seq_endian_combo.py | 2 -- spec/python/test_bits_shift_by_b32_le.py | 2 -- spec/python/test_bits_shift_by_b64_le.py | 2 -- spec/python/test_bits_signed_res_b32_be.py | 2 -- spec/python/test_bits_signed_res_b32_le.py | 2 -- spec/python/test_bits_signed_shift_b32_le.py | 2 -- spec/python/test_bits_signed_shift_b64_le.py | 2 -- spec/python/test_bits_simple.py | 1 - spec/python/test_bits_simple_le.py | 2 -- spec/python/test_bits_unaligned_b32_be.py | 2 -- spec/python/test_bits_unaligned_b32_le.py | 2 -- spec/python/test_bits_unaligned_b64_be.py | 2 -- spec/python/test_bits_unaligned_b64_le.py | 2 -- spec/python/test_buffered_struct.py | 1 - spec/python/test_bytes_pad_term.py | 1 - spec/python/test_cast_nested.py | 1 - spec/python/test_cast_to_top.py | 1 - spec/python/test_combine_bool.py | 2 -- spec/python/test_combine_bytes.py | 2 -- spec/python/test_combine_enum.py | 2 -- spec/python/test_combine_str.py | 2 -- spec/python/test_debug_switch_user.py | 1 - spec/python/test_default_big_endian.py | 1 - spec/python/test_default_bit_endian_mod.py | 2 -- spec/python/test_default_endian_expr_exception.py | 1 - spec/python/test_default_endian_expr_inherited.py | 1 - spec/python/test_default_endian_expr_is_be.py | 1 - spec/python/test_default_endian_expr_is_le.py | 1 - spec/python/test_default_endian_mod.py | 1 - spec/python/test_docstrings.py | 1 - spec/python/test_docstrings_docref.py | 1 - spec/python/test_docstrings_docref_multi.py | 1 - spec/python/test_enum_0.py | 1 - spec/python/test_enum_1.py | 1 - spec/python/test_enum_deep.py | 1 - spec/python/test_enum_deep_literals.py | 1 - spec/python/test_enum_fancy.py | 1 - spec/python/test_enum_if.py | 1 - spec/python/test_enum_import_literals.py | 1 - spec/python/test_enum_import_seq.py | 1 - spec/python/test_enum_int_range_s.py | 2 -- spec/python/test_enum_int_range_u.py | 2 -- spec/python/test_enum_invalid.py | 2 -- spec/python/test_enum_long_range_s.py | 2 -- spec/python/test_enum_long_range_u.py | 2 -- spec/python/test_enum_negative.py | 1 - spec/python/test_enum_of_value_inst.py | 1 - spec/python/test_enum_to_i.py | 2 -- spec/python/test_enum_to_i_class_border_1.py | 2 -- spec/python/test_enum_to_i_invalid.py | 2 -- spec/python/test_eof_exception_bytes.py | 1 - spec/python/test_eof_exception_u4.py | 1 - spec/python/test_eos_exception_bytes.py | 1 - spec/python/test_eos_exception_u4.py | 1 - spec/python/test_expr_0.py | 1 - spec/python/test_expr_1.py | 1 - spec/python/test_expr_2.py | 1 - spec/python/test_expr_3.py | 1 - spec/python/test_expr_array.py | 1 - spec/python/test_expr_bits.py | 2 -- spec/python/test_expr_bytes_cmp.py | 1 - spec/python/test_expr_bytes_non_literal.py | 2 -- spec/python/test_expr_bytes_ops.py | 2 -- spec/python/test_expr_calc_array_ops.py | 2 -- spec/python/test_expr_enum.py | 1 - spec/python/test_expr_fstring_0.py | 2 -- spec/python/test_expr_if_int_ops.py | 2 -- spec/python/test_expr_int_div.py | 2 -- spec/python/test_expr_io_eof.py | 2 -- spec/python/test_expr_io_pos.py | 1 - spec/python/test_expr_io_ternary.py | 1 - spec/python/test_expr_mod.py | 1 - spec/python/test_expr_ops_parens.py | 2 -- spec/python/test_expr_sizeof_type_0.py | 1 - spec/python/test_expr_sizeof_type_1.py | 1 - spec/python/test_expr_sizeof_value_0.py | 1 - spec/python/test_expr_sizeof_value_sized.py | 1 - spec/python/test_expr_str_encodings.py | 2 -- spec/python/test_expr_str_ops.py | 1 - spec/python/test_expr_to_i_trailing.py | 2 -- spec/python/test_fixed_contents.py | 1 - spec/python/test_fixed_struct.py | 1 - spec/python/test_float_to_i.py | 1 - spec/python/test_floating_points.py | 1 - spec/python/test_hello_world.py | 1 - spec/python/test_if_instances.py | 1 - spec/python/test_if_struct.py | 1 - spec/python/test_if_values.py | 1 - spec/python/test_imports0.py | 1 - spec/python/test_imports_abs.py | 1 - spec/python/test_imports_abs_abs.py | 1 - spec/python/test_imports_abs_rel.py | 1 - spec/python/test_imports_cast_to_imported.py | 2 -- spec/python/test_imports_cast_to_imported2.py | 2 -- spec/python/test_imports_circular_a.py | 2 -- spec/python/test_imports_params_def_array_usertype_imported.py | 1 - spec/python/test_imports_params_def_enum_imported.py | 1 - spec/python/test_imports_params_def_usertype_imported.py | 2 -- spec/python/test_imports_rel_1.py | 2 -- spec/python/test_index_sizes.py | 1 - spec/python/test_index_to_param_eos.py | 1 - spec/python/test_index_to_param_expr.py | 1 - spec/python/test_index_to_param_until.py | 1 - spec/python/test_instance_io_user.py | 1 - spec/python/test_instance_std.py | 1 - spec/python/test_instance_std_array.py | 1 - spec/python/test_instance_user_array.py | 1 - spec/python/test_integers.py | 1 - spec/python/test_integers_double_overflow.py | 2 -- spec/python/test_integers_min_max.py | 2 -- spec/python/test_io_local_var.py | 1 - spec/python/test_js_signed_right_shift.py | 1 - spec/python/test_meta_tags.py | 1 - spec/python/test_meta_xref.py | 1 - spec/python/test_multiple_use.py | 1 - spec/python/test_nav_parent.py | 1 - spec/python/test_nav_parent2.py | 1 - spec/python/test_nav_parent3.py | 1 - spec/python/test_nav_parent_false.py | 1 - spec/python/test_nav_parent_false2.py | 1 - spec/python/test_nav_parent_override.py | 1 - spec/python/test_nav_parent_recursive.py | 2 -- spec/python/test_nav_parent_switch.py | 1 - spec/python/test_nav_parent_switch_cast.py | 2 -- spec/python/test_nav_parent_vs_value_inst.py | 1 - spec/python/test_nav_root.py | 1 - spec/python/test_nav_root_recursive.py | 2 -- spec/python/test_nested_same_name.py | 1 - spec/python/test_nested_same_name2.py | 1 - spec/python/test_nested_type_param.py | 2 -- spec/python/test_nested_types.py | 1 - spec/python/test_nested_types2.py | 1 - spec/python/test_nested_types3.py | 1 - spec/python/test_nested_types_import.py | 2 -- spec/python/test_non_standard.py | 1 - spec/python/test_optional_id.py | 2 -- spec/python/test_params_call.py | 1 - spec/python/test_params_call_extra_parens.py | 2 -- spec/python/test_params_enum.py | 1 - spec/python/test_params_pass_array_int.py | 2 -- spec/python/test_params_pass_array_str.py | 2 -- spec/python/test_params_pass_array_struct.py | 2 -- spec/python/test_params_pass_array_usertype.py | 2 -- spec/python/test_params_pass_bool.py | 2 -- spec/python/test_params_pass_struct.py | 2 -- spec/python/test_params_pass_usertype.py | 1 - spec/python/test_position_abs.py | 1 - spec/python/test_position_in_seq.py | 1 - spec/python/test_position_to_end.py | 1 - spec/python/test_process_coerce_bytes.py | 1 - spec/python/test_process_coerce_switch.py | 1 - spec/python/test_process_coerce_usertype1.py | 1 - spec/python/test_process_coerce_usertype2.py | 1 - spec/python/test_process_custom.py | 1 - spec/python/test_process_custom_no_args.py | 2 -- spec/python/test_process_repeat_bytes.py | 2 -- spec/python/test_process_repeat_usertype.py | 2 -- spec/python/test_process_rotate.py | 1 - spec/python/test_process_to_user.py | 1 - spec/python/test_process_xor4_const.py | 1 - spec/python/test_process_xor4_value.py | 1 - spec/python/test_process_xor_const.py | 1 - spec/python/test_process_xor_value.py | 1 - spec/python/test_recursive_one.py | 1 - spec/python/test_repeat_eos_bit.py | 1 - spec/python/test_repeat_eos_struct.py | 1 - spec/python/test_repeat_eos_u4.py | 1 - spec/python/test_repeat_n_struct.py | 1 - spec/python/test_repeat_n_strz.py | 1 - spec/python/test_repeat_n_strz_double.py | 1 - spec/python/test_repeat_until_calc_array_type.py | 2 -- spec/python/test_repeat_until_complex.py | 1 - spec/python/test_repeat_until_s4.py | 1 - spec/python/test_repeat_until_sized.py | 1 - spec/python/test_str_encodings.py | 1 - spec/python/test_str_encodings_default.py | 1 - spec/python/test_str_encodings_utf16.py | 2 -- spec/python/test_str_eos.py | 1 - spec/python/test_str_literals2.py | 1 - spec/python/test_str_literals_latin1.py | 1 - spec/python/test_str_pad_term.py | 1 - spec/python/test_str_pad_term_empty.py | 1 - spec/python/test_str_pad_term_utf16.py | 1 - spec/python/test_switch_bytearray.py | 1 - spec/python/test_switch_else_only.py | 2 -- spec/python/test_switch_integers.py | 1 - spec/python/test_switch_integers2.py | 1 - spec/python/test_switch_manual_enum.py | 1 - spec/python/test_switch_manual_enum_invalid.py | 2 -- spec/python/test_switch_manual_enum_invalid_else.py | 2 -- spec/python/test_switch_manual_int.py | 1 - spec/python/test_switch_manual_int_else.py | 1 - spec/python/test_switch_manual_int_size.py | 2 -- spec/python/test_switch_manual_int_size_else.py | 1 - spec/python/test_switch_manual_int_size_eos.py | 2 -- spec/python/test_switch_manual_str.py | 1 - spec/python/test_switch_manual_str_else.py | 1 - spec/python/test_switch_multi_bool_ops.py | 2 -- spec/python/test_switch_repeat_expr.py | 2 -- spec/python/test_switch_repeat_expr_invalid.py | 2 -- spec/python/test_term_bytes.py | 1 - spec/python/test_term_strz.py | 1 - spec/python/test_term_strz_utf16_v1.py | 1 - spec/python/test_term_strz_utf16_v2.py | 1 - spec/python/test_term_strz_utf16_v3.py | 1 - spec/python/test_term_strz_utf16_v4.py | 1 - spec/python/test_term_u1_val.py | 2 -- spec/python/test_ts_packet_header.py | 1 - spec/python/test_type_int_unary_op.py | 1 - spec/python/test_type_ternary.py | 1 - spec/python/test_type_ternary_2nd_falsy.py | 2 -- spec/python/test_user_type.py | 1 - spec/python/test_valid_eq_str_encodings.py | 2 -- spec/python/test_valid_fail_anyof_int.py | 1 - spec/python/test_valid_fail_contents.py | 1 - spec/python/test_valid_fail_eq_bytes.py | 1 - spec/python/test_valid_fail_eq_int.py | 1 - spec/python/test_valid_fail_eq_str.py | 1 - spec/python/test_valid_fail_expr.py | 1 - spec/python/test_valid_fail_inst.py | 1 - spec/python/test_valid_fail_max_int.py | 1 - spec/python/test_valid_fail_min_int.py | 1 - spec/python/test_valid_fail_range_bytes.py | 1 - spec/python/test_valid_fail_range_float.py | 1 - spec/python/test_valid_fail_range_int.py | 1 - spec/python/test_valid_fail_range_str.py | 1 - spec/python/test_valid_long.py | 2 -- spec/python/test_valid_not_parsed_if.py | 2 -- spec/python/test_valid_optional_id.py | 2 -- spec/python/test_valid_short.py | 2 -- spec/python/test_valid_switch.py | 2 -- spec/python/test_yaml_ints.py | 2 -- spec/python/test_zlib_surrounded.py | 2 -- spec/python/test_zlib_with_header_78.py | 1 - 238 files changed, 317 deletions(-) diff --git a/spec/python/test_bcd_user_type_be.py b/spec/python/test_bcd_user_type_be.py index 12dcfcd72..ca1971be1 100644 --- a/spec/python/test_bcd_user_type_be.py +++ b/spec/python/test_bcd_user_type_be.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bcd_user_type_be import BcdUserTypeBe class TestBcdUserTypeBe(unittest.TestCase): diff --git a/spec/python/test_bcd_user_type_le.py b/spec/python/test_bcd_user_type_le.py index a31d8b64f..ab0520c95 100644 --- a/spec/python/test_bcd_user_type_le.py +++ b/spec/python/test_bcd_user_type_le.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bcd_user_type_le import BcdUserTypeLe class TestBcdUserTypeLe(unittest.TestCase): diff --git a/spec/python/test_bits_byte_aligned.py b/spec/python/test_bits_byte_aligned.py index 4ad37a903..ba209847b 100644 --- a/spec/python/test_bits_byte_aligned.py +++ b/spec/python/test_bits_byte_aligned.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_byte_aligned import BitsByteAligned class TestBitsByteAligned(unittest.TestCase): diff --git a/spec/python/test_bits_enum.py b/spec/python/test_bits_enum.py index 0e836dbce..76276b476 100644 --- a/spec/python/test_bits_enum.py +++ b/spec/python/test_bits_enum.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_enum import BitsEnum import bits_enum diff --git a/spec/python/test_bits_seq_endian_combo.py b/spec/python/test_bits_seq_endian_combo.py index 6013d29de..f0dd2f0ca 100644 --- a/spec/python/test_bits_seq_endian_combo.py +++ b/spec/python/test_bits_seq_endian_combo.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_seq_endian_combo import BitsSeqEndianCombo class TestBitsSeqEndianCombo(unittest.TestCase): def test_bits_seq_endian_combo(self): with BitsSeqEndianCombo.from_file('src/process_xor_4.bin') as r: - self.assertEqual(r.be1, 59) self.assertEqual(r.be2, 187) self.assertEqual(r.le3, 163) diff --git a/spec/python/test_bits_shift_by_b32_le.py b/spec/python/test_bits_shift_by_b32_le.py index beb029cf8..3dce0bf3c 100644 --- a/spec/python/test_bits_shift_by_b32_le.py +++ b/spec/python/test_bits_shift_by_b32_le.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_shift_by_b32_le import BitsShiftByB32Le class TestBitsShiftByB32Le(unittest.TestCase): def test_bits_shift_by_b32_le(self): with BitsShiftByB32Le.from_file('src/bits_shift_by_b32_le.bin') as r: - self.assertEqual(r.a, 4294967295) self.assertEqual(r.b, 0) diff --git a/spec/python/test_bits_shift_by_b64_le.py b/spec/python/test_bits_shift_by_b64_le.py index 5dd41980e..a964901f0 100644 --- a/spec/python/test_bits_shift_by_b64_le.py +++ b/spec/python/test_bits_shift_by_b64_le.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_shift_by_b64_le import BitsShiftByB64Le class TestBitsShiftByB64Le(unittest.TestCase): def test_bits_shift_by_b64_le(self): with BitsShiftByB64Le.from_file('src/bits_shift_by_b64_le.bin') as r: - self.assertEqual(r.a, 18446744073709551615) self.assertEqual(r.b, 0) diff --git a/spec/python/test_bits_signed_res_b32_be.py b/spec/python/test_bits_signed_res_b32_be.py index af7bd2e79..768cb284a 100644 --- a/spec/python/test_bits_signed_res_b32_be.py +++ b/spec/python/test_bits_signed_res_b32_be.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_signed_res_b32_be import BitsSignedResB32Be class TestBitsSignedResB32Be(unittest.TestCase): def test_bits_signed_res_b32_be(self): with BitsSignedResB32Be.from_file('src/bits_shift_by_b32_le.bin') as r: - self.assertEqual(r.a, 4294967295) diff --git a/spec/python/test_bits_signed_res_b32_le.py b/spec/python/test_bits_signed_res_b32_le.py index 1a0d5c82f..a9d0ba1fe 100644 --- a/spec/python/test_bits_signed_res_b32_le.py +++ b/spec/python/test_bits_signed_res_b32_le.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_signed_res_b32_le import BitsSignedResB32Le class TestBitsSignedResB32Le(unittest.TestCase): def test_bits_signed_res_b32_le(self): with BitsSignedResB32Le.from_file('src/bits_shift_by_b32_le.bin') as r: - self.assertEqual(r.a, 4294967295) diff --git a/spec/python/test_bits_signed_shift_b32_le.py b/spec/python/test_bits_signed_shift_b32_le.py index 0a37b4d1d..e9ee3d7a9 100644 --- a/spec/python/test_bits_signed_shift_b32_le.py +++ b/spec/python/test_bits_signed_shift_b32_le.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_signed_shift_b32_le import BitsSignedShiftB32Le class TestBitsSignedShiftB32Le(unittest.TestCase): def test_bits_signed_shift_b32_le(self): with BitsSignedShiftB32Le.from_file('src/bits_signed_shift_b32_le.bin') as r: - self.assertEqual(r.a, 0) self.assertEqual(r.b, 255) diff --git a/spec/python/test_bits_signed_shift_b64_le.py b/spec/python/test_bits_signed_shift_b64_le.py index 4e3996f8c..4970ca9d1 100644 --- a/spec/python/test_bits_signed_shift_b64_le.py +++ b/spec/python/test_bits_signed_shift_b64_le.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_signed_shift_b64_le import BitsSignedShiftB64Le class TestBitsSignedShiftB64Le(unittest.TestCase): def test_bits_signed_shift_b64_le(self): with BitsSignedShiftB64Le.from_file('src/bits_signed_shift_b64_le.bin') as r: - self.assertEqual(r.a, 0) self.assertEqual(r.b, 255) diff --git a/spec/python/test_bits_simple.py b/spec/python/test_bits_simple.py index 69cd9889e..0249a48eb 100644 --- a/spec/python/test_bits_simple.py +++ b/spec/python/test_bits_simple.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_simple import BitsSimple class TestBitsSimple(unittest.TestCase): diff --git a/spec/python/test_bits_simple_le.py b/spec/python/test_bits_simple_le.py index 903609aa1..cb9d18033 100644 --- a/spec/python/test_bits_simple_le.py +++ b/spec/python/test_bits_simple_le.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_simple_le import BitsSimpleLe class TestBitsSimpleLe(unittest.TestCase): def test_bits_simple_le(self): with BitsSimpleLe.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.byte_1, 80) self.assertEqual(r.byte_2, 65) self.assertEqual(r.bits_a, True) diff --git a/spec/python/test_bits_unaligned_b32_be.py b/spec/python/test_bits_unaligned_b32_be.py index 6d3a33abf..9af6ce6e2 100644 --- a/spec/python/test_bits_unaligned_b32_be.py +++ b/spec/python/test_bits_unaligned_b32_be.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_unaligned_b32_be import BitsUnalignedB32Be class TestBitsUnalignedB32Be(unittest.TestCase): def test_bits_unaligned_b32_be(self): with BitsUnalignedB32Be.from_file('src/process_xor_4.bin') as r: - self.assertEqual(r.a, True) self.assertEqual(r.b, 3648472617) self.assertEqual(r.c, 10) diff --git a/spec/python/test_bits_unaligned_b32_le.py b/spec/python/test_bits_unaligned_b32_le.py index 2f7fd982e..5db099c0b 100644 --- a/spec/python/test_bits_unaligned_b32_le.py +++ b/spec/python/test_bits_unaligned_b32_le.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_unaligned_b32_le import BitsUnalignedB32Le class TestBitsUnalignedB32Le(unittest.TestCase): def test_bits_unaligned_b32_le(self): with BitsUnalignedB32Le.from_file('src/process_xor_4.bin') as r: - self.assertEqual(r.a, False) self.assertEqual(r.b, 173137398) self.assertEqual(r.c, 69) diff --git a/spec/python/test_bits_unaligned_b64_be.py b/spec/python/test_bits_unaligned_b64_be.py index d43dd89f5..46f32c105 100644 --- a/spec/python/test_bits_unaligned_b64_be.py +++ b/spec/python/test_bits_unaligned_b64_be.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_unaligned_b64_be import BitsUnalignedB64Be class TestBitsUnalignedB64Be(unittest.TestCase): def test_bits_unaligned_b64_be(self): with BitsUnalignedB64Be.from_file('src/process_xor_4.bin') as r: - self.assertEqual(r.a, True) self.assertEqual(r.b, 15670070570729969769) self.assertEqual(r.c, 14) diff --git a/spec/python/test_bits_unaligned_b64_le.py b/spec/python/test_bits_unaligned_b64_le.py index 182c14988..3fa124769 100644 --- a/spec/python/test_bits_unaligned_b64_le.py +++ b/spec/python/test_bits_unaligned_b64_le.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bits_unaligned_b64_le import BitsUnalignedB64Le class TestBitsUnalignedB64Le(unittest.TestCase): def test_bits_unaligned_b64_le(self): with BitsUnalignedB64Le.from_file('src/process_xor_4.bin') as r: - self.assertEqual(r.a, False) self.assertEqual(r.b, 1902324737369038326) self.assertEqual(r.c, 71) diff --git a/spec/python/test_buffered_struct.py b/spec/python/test_buffered_struct.py index d8c6688b4..42c0b4a5a 100644 --- a/spec/python/test_buffered_struct.py +++ b/spec/python/test_buffered_struct.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from buffered_struct import BufferedStruct class TestBufferedStruct(unittest.TestCase): diff --git a/spec/python/test_bytes_pad_term.py b/spec/python/test_bytes_pad_term.py index 65dad5766..5b526f1ce 100644 --- a/spec/python/test_bytes_pad_term.py +++ b/spec/python/test_bytes_pad_term.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from bytes_pad_term import BytesPadTerm class TestBytesPadTerm(unittest.TestCase): diff --git a/spec/python/test_cast_nested.py b/spec/python/test_cast_nested.py index 500def4cb..d907989c4 100644 --- a/spec/python/test_cast_nested.py +++ b/spec/python/test_cast_nested.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from cast_nested import CastNested class TestCastNested(unittest.TestCase): diff --git a/spec/python/test_cast_to_top.py b/spec/python/test_cast_to_top.py index ca733bbf9..c62e66203 100644 --- a/spec/python/test_cast_to_top.py +++ b/spec/python/test_cast_to_top.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from cast_to_top import CastToTop class TestCastToTop(unittest.TestCase): diff --git a/spec/python/test_combine_bool.py b/spec/python/test_combine_bool.py index c49eb122b..f5d4041bd 100644 --- a/spec/python/test_combine_bool.py +++ b/spec/python/test_combine_bool.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from combine_bool import CombineBool class TestCombineBool(unittest.TestCase): def test_combine_bool(self): with CombineBool.from_file('src/enum_negative.bin') as r: - self.assertEqual(r.bool_bit, True) self.assertEqual(r.bool_calc_bit, False) diff --git a/spec/python/test_combine_bytes.py b/spec/python/test_combine_bytes.py index e8ed7d58f..4db799819 100644 --- a/spec/python/test_combine_bytes.py +++ b/spec/python/test_combine_bytes.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from combine_bytes import CombineBytes class TestCombineBytes(unittest.TestCase): def test_combine_bytes(self): with CombineBytes.from_file('src/term_strz.bin') as r: - self.assertEqual(r.bytes_term, b"\x66\x6F\x6F") self.assertEqual(r.bytes_limit, b"\x62\x61\x72\x7C") self.assertEqual(r.bytes_eos, b"\x62\x61\x7A\x40") diff --git a/spec/python/test_combine_enum.py b/spec/python/test_combine_enum.py index 66815c8f4..375d7c2e0 100644 --- a/spec/python/test_combine_enum.py +++ b/spec/python/test_combine_enum.py @@ -1,14 +1,12 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from combine_enum import CombineEnum import combine_enum class TestCombineEnum(unittest.TestCase): def test_combine_enum(self): with CombineEnum.from_file('src/enum_0.bin') as r: - self.assertEqual(r.enum_u4, combine_enum.CombineEnum.Animal.pig) self.assertEqual(r.enum_u2, combine_enum.CombineEnum.Animal.horse) self.assertEqual(r.enum_u4_u2, combine_enum.CombineEnum.Animal.horse) diff --git a/spec/python/test_combine_str.py b/spec/python/test_combine_str.py index 727c8a689..23d3c7f43 100644 --- a/spec/python/test_combine_str.py +++ b/spec/python/test_combine_str.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from combine_str import CombineStr class TestCombineStr(unittest.TestCase): def test_combine_str(self): with CombineStr.from_file('src/term_strz.bin') as r: - self.assertEqual(r.str_term, u"foo") self.assertEqual(r.str_limit, u"bar|") self.assertEqual(r.str_eos, u"baz@") diff --git a/spec/python/test_debug_switch_user.py b/spec/python/test_debug_switch_user.py index b5b03f5fe..24fd37f8c 100644 --- a/spec/python/test_debug_switch_user.py +++ b/spec/python/test_debug_switch_user.py @@ -1,7 +1,6 @@ # runs in debug mode, so the _read() needs to be called manually import unittest - from debug_switch_user import DebugSwitchUser class TestDebugSwitchUser(unittest.TestCase): diff --git a/spec/python/test_default_big_endian.py b/spec/python/test_default_big_endian.py index 75667621a..d1b64d8ec 100644 --- a/spec/python/test_default_big_endian.py +++ b/spec/python/test_default_big_endian.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from default_big_endian import DefaultBigEndian class TestDefaultBigEndian(unittest.TestCase): diff --git a/spec/python/test_default_bit_endian_mod.py b/spec/python/test_default_bit_endian_mod.py index be1e10981..1f89e748b 100644 --- a/spec/python/test_default_bit_endian_mod.py +++ b/spec/python/test_default_bit_endian_mod.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from default_bit_endian_mod import DefaultBitEndianMod class TestDefaultBitEndianMod(unittest.TestCase): def test_default_bit_endian_mod(self): with DefaultBitEndianMod.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.main.one, 336) self.assertEqual(r.main.two, 8608) self.assertEqual(r.main.nest.two, 11595) diff --git a/spec/python/test_default_endian_expr_exception.py b/spec/python/test_default_endian_expr_exception.py index 76931a796..d888d7832 100644 --- a/spec/python/test_default_endian_expr_exception.py +++ b/spec/python/test_default_endian_expr_exception.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from default_endian_expr_exception import DefaultEndianExprException import kaitaistruct diff --git a/spec/python/test_default_endian_expr_inherited.py b/spec/python/test_default_endian_expr_inherited.py index c586406b0..7c87cde52 100644 --- a/spec/python/test_default_endian_expr_inherited.py +++ b/spec/python/test_default_endian_expr_inherited.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from default_endian_expr_inherited import DefaultEndianExprInherited class TestDefaultEndianExprInherited(unittest.TestCase): diff --git a/spec/python/test_default_endian_expr_is_be.py b/spec/python/test_default_endian_expr_is_be.py index ddc5a1540..11714ac90 100644 --- a/spec/python/test_default_endian_expr_is_be.py +++ b/spec/python/test_default_endian_expr_is_be.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from default_endian_expr_is_be import DefaultEndianExprIsBe class TestDefaultEndianExprIsBe(unittest.TestCase): diff --git a/spec/python/test_default_endian_expr_is_le.py b/spec/python/test_default_endian_expr_is_le.py index 020728e1b..322625c5b 100644 --- a/spec/python/test_default_endian_expr_is_le.py +++ b/spec/python/test_default_endian_expr_is_le.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from default_endian_expr_is_le import DefaultEndianExprIsLe class TestDefaultEndianExprIsLe(unittest.TestCase): diff --git a/spec/python/test_default_endian_mod.py b/spec/python/test_default_endian_mod.py index 82053085c..e71f8a064 100644 --- a/spec/python/test_default_endian_mod.py +++ b/spec/python/test_default_endian_mod.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from default_endian_mod import DefaultEndianMod class TestDefaultEndianMod(unittest.TestCase): diff --git a/spec/python/test_docstrings.py b/spec/python/test_docstrings.py index 4c95f4ca0..3b8b445b1 100644 --- a/spec/python/test_docstrings.py +++ b/spec/python/test_docstrings.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from docstrings import Docstrings class TestDocstrings(unittest.TestCase): diff --git a/spec/python/test_docstrings_docref.py b/spec/python/test_docstrings_docref.py index a28073661..bed5a5df7 100644 --- a/spec/python/test_docstrings_docref.py +++ b/spec/python/test_docstrings_docref.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from docstrings_docref import DocstringsDocref class TestDocstringsDocref(unittest.TestCase): diff --git a/spec/python/test_docstrings_docref_multi.py b/spec/python/test_docstrings_docref_multi.py index ceaf2f55d..91e31b0ea 100644 --- a/spec/python/test_docstrings_docref_multi.py +++ b/spec/python/test_docstrings_docref_multi.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from docstrings_docref_multi import DocstringsDocrefMulti class TestDocstringsDocrefMulti(unittest.TestCase): diff --git a/spec/python/test_enum_0.py b/spec/python/test_enum_0.py index 4b2b53cf3..cbea78241 100644 --- a/spec/python/test_enum_0.py +++ b/spec/python/test_enum_0.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_0 import Enum0 import enum_0 diff --git a/spec/python/test_enum_1.py b/spec/python/test_enum_1.py index 2122fe93b..8947cff04 100644 --- a/spec/python/test_enum_1.py +++ b/spec/python/test_enum_1.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_1 import Enum1 import enum_1 diff --git a/spec/python/test_enum_deep.py b/spec/python/test_enum_deep.py index 6526e7c8f..002ec9144 100644 --- a/spec/python/test_enum_deep.py +++ b/spec/python/test_enum_deep.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_deep import EnumDeep import enum_deep diff --git a/spec/python/test_enum_deep_literals.py b/spec/python/test_enum_deep_literals.py index fe002cd81..506899a81 100644 --- a/spec/python/test_enum_deep_literals.py +++ b/spec/python/test_enum_deep_literals.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_deep_literals import EnumDeepLiterals class TestEnumDeepLiterals(unittest.TestCase): diff --git a/spec/python/test_enum_fancy.py b/spec/python/test_enum_fancy.py index 42f8dd45a..679a79204 100644 --- a/spec/python/test_enum_fancy.py +++ b/spec/python/test_enum_fancy.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_fancy import EnumFancy import enum_fancy diff --git a/spec/python/test_enum_if.py b/spec/python/test_enum_if.py index 520d131b4..6d9c69859 100644 --- a/spec/python/test_enum_if.py +++ b/spec/python/test_enum_if.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_if import EnumIf import enum_if diff --git a/spec/python/test_enum_import_literals.py b/spec/python/test_enum_import_literals.py index 7cf566795..85638ba60 100644 --- a/spec/python/test_enum_import_literals.py +++ b/spec/python/test_enum_import_literals.py @@ -7,7 +7,6 @@ class TestEnumImportLiterals(unittest.TestCase): def test_enum_import_literals(self): with EnumImportLiterals.from_file('src/enum_0.bin') as r: - self.assertEqual(r.pet_1_to_i, 7) self.assertEqual(r.pet_1_eq, True) self.assertEqual(r.pet_2, enum_deep.EnumDeep.Container1.Container2.Animal.hare) diff --git a/spec/python/test_enum_import_seq.py b/spec/python/test_enum_import_seq.py index d9e30692b..84b1235a2 100644 --- a/spec/python/test_enum_import_seq.py +++ b/spec/python/test_enum_import_seq.py @@ -8,6 +8,5 @@ class TestEnumImportSeq(unittest.TestCase): def test_enum_import_seq(self): with EnumImportSeq.from_file('src/enum_0.bin') as r: - self.assertEqual(r.pet_1, enum_0.Enum0.Animal.cat) self.assertEqual(r.pet_2, enum_deep.EnumDeep.Container1.Container2.Animal.hare) diff --git a/spec/python/test_enum_int_range_s.py b/spec/python/test_enum_int_range_s.py index f5f81d360..2f79d21a3 100644 --- a/spec/python/test_enum_int_range_s.py +++ b/spec/python/test_enum_int_range_s.py @@ -1,14 +1,12 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_int_range_s import EnumIntRangeS import enum_int_range_s class TestEnumIntRangeS(unittest.TestCase): def test_enum_int_range_s(self): with EnumIntRangeS.from_file('src/enum_int_range_s.bin') as r: - self.assertEqual(r.f1, enum_int_range_s.EnumIntRangeS.Constants.int_min) self.assertEqual(r.f2, enum_int_range_s.EnumIntRangeS.Constants.zero) self.assertEqual(r.f3, enum_int_range_s.EnumIntRangeS.Constants.int_max) diff --git a/spec/python/test_enum_int_range_u.py b/spec/python/test_enum_int_range_u.py index dd2f6f6b1..09a0c93c7 100644 --- a/spec/python/test_enum_int_range_u.py +++ b/spec/python/test_enum_int_range_u.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_int_range_u import EnumIntRangeU import enum_int_range_u class TestEnumIntRangeU(unittest.TestCase): def test_enum_int_range_u(self): with EnumIntRangeU.from_file('src/enum_int_range_u.bin') as r: - self.assertEqual(r.f1, enum_int_range_u.EnumIntRangeU.Constants.zero) self.assertEqual(r.f2, enum_int_range_u.EnumIntRangeU.Constants.int_max) diff --git a/spec/python/test_enum_invalid.py b/spec/python/test_enum_invalid.py index 57416a216..7baba6c46 100644 --- a/spec/python/test_enum_invalid.py +++ b/spec/python/test_enum_invalid.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_invalid import EnumInvalid import enum_invalid class TestEnumInvalid(unittest.TestCase): def test_enum_invalid(self): with EnumInvalid.from_file('src/term_strz.bin') as r: - self.assertEqual(r.pet_1, enum_invalid.EnumInvalid.Animal.dog) self.assertEqual(r.pet_2, 111) diff --git a/spec/python/test_enum_long_range_s.py b/spec/python/test_enum_long_range_s.py index d9f1af643..2444833a4 100644 --- a/spec/python/test_enum_long_range_s.py +++ b/spec/python/test_enum_long_range_s.py @@ -1,14 +1,12 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_long_range_s import EnumLongRangeS import enum_long_range_s class TestEnumLongRangeS(unittest.TestCase): def test_enum_long_range_s(self): with EnumLongRangeS.from_file('src/enum_long_range_s.bin') as r: - self.assertEqual(r.f1, enum_long_range_s.EnumLongRangeS.Constants.long_min) self.assertEqual(r.f2, enum_long_range_s.EnumLongRangeS.Constants.int_below_min) self.assertEqual(r.f3, enum_long_range_s.EnumLongRangeS.Constants.int_min) diff --git a/spec/python/test_enum_long_range_u.py b/spec/python/test_enum_long_range_u.py index 0cd673f66..60b4e0e41 100644 --- a/spec/python/test_enum_long_range_u.py +++ b/spec/python/test_enum_long_range_u.py @@ -1,14 +1,12 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_long_range_u import EnumLongRangeU import enum_long_range_u class TestEnumLongRangeU(unittest.TestCase): def test_enum_long_range_u(self): with EnumLongRangeU.from_file('src/enum_long_range_u.bin') as r: - self.assertEqual(r.f1, enum_long_range_u.EnumLongRangeU.Constants.zero) self.assertEqual(r.f2, enum_long_range_u.EnumLongRangeU.Constants.int_max) self.assertEqual(r.f3, enum_long_range_u.EnumLongRangeU.Constants.int_over_max) diff --git a/spec/python/test_enum_negative.py b/spec/python/test_enum_negative.py index ecfc74397..994c36183 100644 --- a/spec/python/test_enum_negative.py +++ b/spec/python/test_enum_negative.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_negative import EnumNegative import enum_negative diff --git a/spec/python/test_enum_of_value_inst.py b/spec/python/test_enum_of_value_inst.py index 1e06f757f..2e9e3ea16 100644 --- a/spec/python/test_enum_of_value_inst.py +++ b/spec/python/test_enum_of_value_inst.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_of_value_inst import EnumOfValueInst import enum_of_value_inst diff --git a/spec/python/test_enum_to_i.py b/spec/python/test_enum_to_i.py index 147a58681..0ca2d0f0c 100644 --- a/spec/python/test_enum_to_i.py +++ b/spec/python/test_enum_to_i.py @@ -1,14 +1,12 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_to_i import EnumToI import enum_to_i class TestEnumToI(unittest.TestCase): def test_enum_to_i(self): with EnumToI.from_file('src/enum_0.bin') as r: - self.assertEqual(r.pet_1, enum_to_i.EnumToI.Animal.cat) self.assertEqual(r.pet_2, enum_to_i.EnumToI.Animal.chicken) self.assertEqual(r.pet_1_i, 7) diff --git a/spec/python/test_enum_to_i_class_border_1.py b/spec/python/test_enum_to_i_class_border_1.py index c65c0f82f..afa6b95cb 100644 --- a/spec/python/test_enum_to_i_class_border_1.py +++ b/spec/python/test_enum_to_i_class_border_1.py @@ -1,14 +1,12 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_to_i_class_border_1 import EnumToIClassBorder1 import enum_to_i_class_border_1 class TestEnumToIClassBorder1(unittest.TestCase): def test_enum_to_i_class_border_1(self): with EnumToIClassBorder1.from_file('src/enum_0.bin') as r: - self.assertEqual(r.pet_1, enum_to_i_class_border_1.EnumToIClassBorder1.Animal.cat) self.assertEqual(r.pet_2, enum_to_i_class_border_1.EnumToIClassBorder1.Animal.chicken) self.assertEqual(r.checker.is_dog, True) diff --git a/spec/python/test_enum_to_i_invalid.py b/spec/python/test_enum_to_i_invalid.py index 3d729929d..e6d4c5b0e 100644 --- a/spec/python/test_enum_to_i_invalid.py +++ b/spec/python/test_enum_to_i_invalid.py @@ -1,14 +1,12 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from enum_to_i_invalid import EnumToIInvalid import enum_to_i_invalid class TestEnumToIInvalid(unittest.TestCase): def test_enum_to_i_invalid(self): with EnumToIInvalid.from_file('src/term_strz.bin') as r: - self.assertEqual(r.pet_1, enum_to_i_invalid.EnumToIInvalid.Animal.dog) self.assertEqual(r.pet_2, 111) self.assertEqual(r.pet_2_i, 111) diff --git a/spec/python/test_eof_exception_bytes.py b/spec/python/test_eof_exception_bytes.py index 53368f5ab..1ca959e3b 100644 --- a/spec/python/test_eof_exception_bytes.py +++ b/spec/python/test_eof_exception_bytes.py @@ -1,5 +1,4 @@ import unittest - from eof_exception_bytes import EofExceptionBytes import kaitaistruct diff --git a/spec/python/test_eof_exception_u4.py b/spec/python/test_eof_exception_u4.py index ddfc487c2..43824143a 100644 --- a/spec/python/test_eof_exception_u4.py +++ b/spec/python/test_eof_exception_u4.py @@ -1,5 +1,4 @@ import unittest - from eof_exception_u4 import EofExceptionU4 import kaitaistruct diff --git a/spec/python/test_eos_exception_bytes.py b/spec/python/test_eos_exception_bytes.py index 1840ba31b..bb1e14a03 100644 --- a/spec/python/test_eos_exception_bytes.py +++ b/spec/python/test_eos_exception_bytes.py @@ -1,5 +1,4 @@ import unittest - from eos_exception_bytes import EosExceptionBytes import kaitaistruct diff --git a/spec/python/test_eos_exception_u4.py b/spec/python/test_eos_exception_u4.py index 90f9c9423..7430f65ef 100644 --- a/spec/python/test_eos_exception_u4.py +++ b/spec/python/test_eos_exception_u4.py @@ -1,5 +1,4 @@ import unittest - from eos_exception_u4 import EosExceptionU4 import kaitaistruct diff --git a/spec/python/test_expr_0.py b/spec/python/test_expr_0.py index f20148ba8..de65e8924 100644 --- a/spec/python/test_expr_0.py +++ b/spec/python/test_expr_0.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_0 import Expr0 class TestExpr0(unittest.TestCase): diff --git a/spec/python/test_expr_1.py b/spec/python/test_expr_1.py index 79906ded2..63b1240dd 100644 --- a/spec/python/test_expr_1.py +++ b/spec/python/test_expr_1.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_1 import Expr1 class TestExpr1(unittest.TestCase): diff --git a/spec/python/test_expr_2.py b/spec/python/test_expr_2.py index ec82c1597..28781c1c7 100644 --- a/spec/python/test_expr_2.py +++ b/spec/python/test_expr_2.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_2 import Expr2 class TestExpr2(unittest.TestCase): diff --git a/spec/python/test_expr_3.py b/spec/python/test_expr_3.py index d57563c51..337cfd7ee 100644 --- a/spec/python/test_expr_3.py +++ b/spec/python/test_expr_3.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_3 import Expr3 class TestExpr3(unittest.TestCase): diff --git a/spec/python/test_expr_array.py b/spec/python/test_expr_array.py index 779c574e0..731df632b 100644 --- a/spec/python/test_expr_array.py +++ b/spec/python/test_expr_array.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_array import ExprArray class TestExprArray(unittest.TestCase): diff --git a/spec/python/test_expr_bits.py b/spec/python/test_expr_bits.py index f33f1b936..849ac448d 100644 --- a/spec/python/test_expr_bits.py +++ b/spec/python/test_expr_bits.py @@ -1,14 +1,12 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_bits import ExprBits import expr_bits class TestExprBits(unittest.TestCase): def test_expr_bits(self): with ExprBits.from_file('src/switch_opcodes.bin') as r: - self.assertEqual(r.a, 2) self.assertEqual(r.enum_seq, expr_bits.ExprBits.Items.foo) self.assertEqual(r.byte_size, b"\x66\x6F") diff --git a/spec/python/test_expr_bytes_cmp.py b/spec/python/test_expr_bytes_cmp.py index 6d7f675e5..eb9d5f466 100644 --- a/spec/python/test_expr_bytes_cmp.py +++ b/spec/python/test_expr_bytes_cmp.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_bytes_cmp import ExprBytesCmp class TestExprBytesCmp(unittest.TestCase): diff --git a/spec/python/test_expr_bytes_non_literal.py b/spec/python/test_expr_bytes_non_literal.py index 8403217e3..dddda09dd 100644 --- a/spec/python/test_expr_bytes_non_literal.py +++ b/spec/python/test_expr_bytes_non_literal.py @@ -1,12 +1,10 @@ import unittest - from expr_bytes_non_literal import ExprBytesNonLiteral from kaitaistruct import KaitaiStream class TestExprBytesNonLiteral(unittest.TestCase): def test_expr_bytes_non_literal(self): with ExprBytesNonLiteral.from_file('src/enum_negative.bin') as r: - self.assertEqual(len(r.calc_bytes), 2) self.assertEqual(KaitaiStream.byte_array_index(r.calc_bytes, 0), 255) self.assertEqual(KaitaiStream.byte_array_index(r.calc_bytes, 1), 1) diff --git a/spec/python/test_expr_bytes_ops.py b/spec/python/test_expr_bytes_ops.py index 7f3bf75fe..85e7e285b 100644 --- a/spec/python/test_expr_bytes_ops.py +++ b/spec/python/test_expr_bytes_ops.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_bytes_ops import ExprBytesOps class TestExprBytesOps(unittest.TestCase): def test_expr_bytes_ops(self): with ExprBytesOps.from_file('src/nav_parent_switch.bin') as r: - self.assertEqual(r.one_size, 3) self.assertEqual(r.one_first, 1) self.assertEqual(r.one_mid, 66) diff --git a/spec/python/test_expr_calc_array_ops.py b/spec/python/test_expr_calc_array_ops.py index 191ad7931..5c75be746 100644 --- a/spec/python/test_expr_calc_array_ops.py +++ b/spec/python/test_expr_calc_array_ops.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_calc_array_ops import ExprCalcArrayOps class TestExprCalcArrayOps(unittest.TestCase): def test_expr_calc_array_ops(self): with ExprCalcArrayOps.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.int_array_size, 7) self.assertEqual(r.int_array_first, 10) self.assertEqual(r.int_array_mid, 25) diff --git a/spec/python/test_expr_enum.py b/spec/python/test_expr_enum.py index fb9c6e2ec..6ff908468 100644 --- a/spec/python/test_expr_enum.py +++ b/spec/python/test_expr_enum.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_enum import ExprEnum import expr_enum diff --git a/spec/python/test_expr_fstring_0.py b/spec/python/test_expr_fstring_0.py index 76b50b8a2..08eed18ec 100644 --- a/spec/python/test_expr_fstring_0.py +++ b/spec/python/test_expr_fstring_0.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_fstring_0 import ExprFstring0 class TestExprFstring0(unittest.TestCase): def test_expr_fstring_0(self): with ExprFstring0.from_file('src/term_strz.bin') as r: - self.assertEqual(r.seq_str, u"foo|b") self.assertEqual(r.seq_int, 97) self.assertEqual(r.empty, u"") diff --git a/spec/python/test_expr_if_int_ops.py b/spec/python/test_expr_if_int_ops.py index 1535deb57..c2fe3a89d 100644 --- a/spec/python/test_expr_if_int_ops.py +++ b/spec/python/test_expr_if_int_ops.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_if_int_ops import ExprIfIntOps class TestExprIfIntOps(unittest.TestCase): def test_expr_if_int_ops(self): with ExprIfIntOps.from_file('src/process_coerce_switch.bin') as r: - self.assertEqual(r.is_eq_prim, True) self.assertEqual(r.is_eq_boxed, True) diff --git a/spec/python/test_expr_int_div.py b/spec/python/test_expr_int_div.py index 9c9af43ac..69ecda20d 100644 --- a/spec/python/test_expr_int_div.py +++ b/spec/python/test_expr_int_div.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_int_div import ExprIntDiv class TestExprIntDiv(unittest.TestCase): def test_expr_int_div(self): with ExprIntDiv.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.int_u, 1262698832) self.assertEqual(r.int_s, -52947) self.assertEqual(r.div_pos_const, 756) diff --git a/spec/python/test_expr_io_eof.py b/spec/python/test_expr_io_eof.py index d0b21787d..a2d3bad9b 100644 --- a/spec/python/test_expr_io_eof.py +++ b/spec/python/test_expr_io_eof.py @@ -1,11 +1,9 @@ import unittest - from expr_io_eof import ExprIoEof class TestExprIoEof(unittest.TestCase): def test_expr_io_eof(self): with ExprIoEof.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.substream1.one, 1262698832) self.assertFalse(hasattr(r.substream1, 'two')) self.assertEqual(r.substream2.one, 4294914349) diff --git a/spec/python/test_expr_io_pos.py b/spec/python/test_expr_io_pos.py index 87e0e4da3..40be116a7 100644 --- a/spec/python/test_expr_io_pos.py +++ b/spec/python/test_expr_io_pos.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_io_pos import ExprIoPos class TestExprIoPos(unittest.TestCase): diff --git a/spec/python/test_expr_io_ternary.py b/spec/python/test_expr_io_ternary.py index dc51baf0e..d2c4266f5 100644 --- a/spec/python/test_expr_io_ternary.py +++ b/spec/python/test_expr_io_ternary.py @@ -6,7 +6,6 @@ class TestExprIoTernary(unittest.TestCase): def test_expr_io_ternary(self): with ExprIoTernary.from_file('src/if_struct.bin') as r: - self.assertEqual(r.one_or_two_io_size1, 8) self.assertEqual(r.one_or_two_io_size2, 8) self.assertEqual(r.one_or_two_io_size_add_3, 11) diff --git a/spec/python/test_expr_mod.py b/spec/python/test_expr_mod.py index 7dcf3aa87..7584ea82b 100644 --- a/spec/python/test_expr_mod.py +++ b/spec/python/test_expr_mod.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_mod import ExprMod class TestExprMod(unittest.TestCase): diff --git a/spec/python/test_expr_ops_parens.py b/spec/python/test_expr_ops_parens.py index 392f8a961..eca2b3869 100644 --- a/spec/python/test_expr_ops_parens.py +++ b/spec/python/test_expr_ops_parens.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_ops_parens import ExprOpsParens class TestExprOpsParens(unittest.TestCase): def test_expr_ops_parens(self): with ExprOpsParens.from_file('src/enum_negative.bin') as r: - self.assertEqual(r.i_sum_to_str, u"29") self.assertEqual(r.f_sum_to_int, 9) self.assertEqual(r.str_concat_len, 10) diff --git a/spec/python/test_expr_sizeof_type_0.py b/spec/python/test_expr_sizeof_type_0.py index 0a2a0aec5..a6d419806 100644 --- a/spec/python/test_expr_sizeof_type_0.py +++ b/spec/python/test_expr_sizeof_type_0.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_sizeof_type_0 import ExprSizeofType0 class TestExprSizeofType0(unittest.TestCase): diff --git a/spec/python/test_expr_sizeof_type_1.py b/spec/python/test_expr_sizeof_type_1.py index 198d83544..9f72d9c54 100644 --- a/spec/python/test_expr_sizeof_type_1.py +++ b/spec/python/test_expr_sizeof_type_1.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_sizeof_type_1 import ExprSizeofType1 class TestExprSizeofType1(unittest.TestCase): diff --git a/spec/python/test_expr_sizeof_value_0.py b/spec/python/test_expr_sizeof_value_0.py index 113b804f2..788112cab 100644 --- a/spec/python/test_expr_sizeof_value_0.py +++ b/spec/python/test_expr_sizeof_value_0.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_sizeof_value_0 import ExprSizeofValue0 class TestExprSizeofValue0(unittest.TestCase): diff --git a/spec/python/test_expr_sizeof_value_sized.py b/spec/python/test_expr_sizeof_value_sized.py index 91f3d2ef7..50503cf32 100644 --- a/spec/python/test_expr_sizeof_value_sized.py +++ b/spec/python/test_expr_sizeof_value_sized.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_sizeof_value_sized import ExprSizeofValueSized class TestExprSizeofValueSized(unittest.TestCase): diff --git a/spec/python/test_expr_str_encodings.py b/spec/python/test_expr_str_encodings.py index 15f629434..492da9d00 100644 --- a/spec/python/test_expr_str_encodings.py +++ b/spec/python/test_expr_str_encodings.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_str_encodings import ExprStrEncodings class TestExprStrEncodings(unittest.TestCase): def test_expr_str_encodings(self): with ExprStrEncodings.from_file('src/str_encodings.bin') as r: - self.assertEqual(r.str1_eq, True) self.assertEqual(r.str2_eq, True) self.assertEqual(r.str3_eq, True) diff --git a/spec/python/test_expr_str_ops.py b/spec/python/test_expr_str_ops.py index fc081aea4..7d1df7178 100644 --- a/spec/python/test_expr_str_ops.py +++ b/spec/python/test_expr_str_ops.py @@ -6,7 +6,6 @@ class TestExprStrOps(unittest.TestCase): def test_expr_str_ops(self): with ExprStrOps.from_file('src/term_strz.bin') as r: - self.assertEqual(r.one, u"foo|b") self.assertEqual(r.one_len, 5) self.assertEqual(r.one_rev, u"b|oof") diff --git a/spec/python/test_expr_to_i_trailing.py b/spec/python/test_expr_to_i_trailing.py index f4d80089f..e95c260b8 100644 --- a/spec/python/test_expr_to_i_trailing.py +++ b/spec/python/test_expr_to_i_trailing.py @@ -1,14 +1,12 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from expr_to_i_trailing import ExprToITrailing import kaitaistruct class TestExprToITrailing(unittest.TestCase): def test_expr_to_i_trailing(self): with ExprToITrailing.from_file('src/term_strz.bin') as r: - with self.assertRaises(ValueError): r.to_i_r10 self.assertEqual(r.to_i_r16, 152517308) diff --git a/spec/python/test_fixed_contents.py b/spec/python/test_fixed_contents.py index 2235f2014..0593073c1 100644 --- a/spec/python/test_fixed_contents.py +++ b/spec/python/test_fixed_contents.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from fixed_contents import FixedContents class TestFixedContents(unittest.TestCase): diff --git a/spec/python/test_fixed_struct.py b/spec/python/test_fixed_struct.py index 59876f1cd..8bd4d91e7 100644 --- a/spec/python/test_fixed_struct.py +++ b/spec/python/test_fixed_struct.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from fixed_struct import FixedStruct class TestFixedStruct(unittest.TestCase): diff --git a/spec/python/test_float_to_i.py b/spec/python/test_float_to_i.py index d3fe67014..cd560db44 100644 --- a/spec/python/test_float_to_i.py +++ b/spec/python/test_float_to_i.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from float_to_i import FloatToI class TestFloatToI(unittest.TestCase): diff --git a/spec/python/test_floating_points.py b/spec/python/test_floating_points.py index 5e4996e53..2b188f2a3 100644 --- a/spec/python/test_floating_points.py +++ b/spec/python/test_floating_points.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from floating_points import FloatingPoints class TestFloatingPoints(unittest.TestCase): diff --git a/spec/python/test_hello_world.py b/spec/python/test_hello_world.py index 3d59e5cb2..af8f62019 100644 --- a/spec/python/test_hello_world.py +++ b/spec/python/test_hello_world.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from hello_world import HelloWorld class TestHelloWorld(unittest.TestCase): diff --git a/spec/python/test_if_instances.py b/spec/python/test_if_instances.py index f3e592cbf..62cd46d89 100644 --- a/spec/python/test_if_instances.py +++ b/spec/python/test_if_instances.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from if_instances import IfInstances class TestIfInstances(unittest.TestCase): diff --git a/spec/python/test_if_struct.py b/spec/python/test_if_struct.py index a5e2b0841..398b9f84c 100644 --- a/spec/python/test_if_struct.py +++ b/spec/python/test_if_struct.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from if_struct import IfStruct class TestIfStruct(unittest.TestCase): diff --git a/spec/python/test_if_values.py b/spec/python/test_if_values.py index 80e47c1cc..5a191296c 100644 --- a/spec/python/test_if_values.py +++ b/spec/python/test_if_values.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from if_values import IfValues class TestIfValues(unittest.TestCase): diff --git a/spec/python/test_imports0.py b/spec/python/test_imports0.py index 41f2e03b7..658d39a06 100644 --- a/spec/python/test_imports0.py +++ b/spec/python/test_imports0.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from imports0 import Imports0 class TestImports0(unittest.TestCase): diff --git a/spec/python/test_imports_abs.py b/spec/python/test_imports_abs.py index ce40cb4bf..42b10d10b 100644 --- a/spec/python/test_imports_abs.py +++ b/spec/python/test_imports_abs.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from imports_abs import ImportsAbs class TestImportsAbs(unittest.TestCase): diff --git a/spec/python/test_imports_abs_abs.py b/spec/python/test_imports_abs_abs.py index 9b324c01f..5508a3fa5 100644 --- a/spec/python/test_imports_abs_abs.py +++ b/spec/python/test_imports_abs_abs.py @@ -6,7 +6,6 @@ class TestImportsAbsAbs(unittest.TestCase): def test_imports_abs_abs(self): with ImportsAbsAbs.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.one, 80) self.assertEqual(r.two.one, 65) self.assertEqual(r.two.two.one, 67) diff --git a/spec/python/test_imports_abs_rel.py b/spec/python/test_imports_abs_rel.py index 23c40f9cc..a9d6c2b48 100644 --- a/spec/python/test_imports_abs_rel.py +++ b/spec/python/test_imports_abs_rel.py @@ -6,7 +6,6 @@ class TestImportsAbsRel(unittest.TestCase): def test_imports_abs_rel(self): with ImportsAbsRel.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.one, 80) self.assertEqual(r.two.one, 65) self.assertEqual(r.two.two.one, 67) diff --git a/spec/python/test_imports_cast_to_imported.py b/spec/python/test_imports_cast_to_imported.py index d72c6082e..9b21758af 100644 --- a/spec/python/test_imports_cast_to_imported.py +++ b/spec/python/test_imports_cast_to_imported.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from imports_cast_to_imported import ImportsCastToImported class TestImportsCastToImported(unittest.TestCase): def test_imports_cast_to_imported(self): with ImportsCastToImported.from_file('src/process_xor_4.bin') as r: - self.assertEqual(r.hw.one, 236) self.assertEqual(r.two.hw_one, 236) diff --git a/spec/python/test_imports_cast_to_imported2.py b/spec/python/test_imports_cast_to_imported2.py index 14fb77b87..b5bb24cce 100644 --- a/spec/python/test_imports_cast_to_imported2.py +++ b/spec/python/test_imports_cast_to_imported2.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from imports_cast_to_imported2 import ImportsCastToImported2 class TestImportsCastToImported2(unittest.TestCase): def test_imports_cast_to_imported2(self): with ImportsCastToImported2.from_file('src/process_xor_4.bin') as r: - self.assertEqual(r.hw.one, 236) self.assertEqual(r.two.hw.one, 236) diff --git a/spec/python/test_imports_circular_a.py b/spec/python/test_imports_circular_a.py index 90da99308..205c525af 100644 --- a/spec/python/test_imports_circular_a.py +++ b/spec/python/test_imports_circular_a.py @@ -1,11 +1,9 @@ import unittest - from imports_circular_a import ImportsCircularA class TestImportsCircularA(unittest.TestCase): def test_imports_circular_a(self): with ImportsCircularA.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.code, 80) self.assertEqual(r.two.initial, 65) self.assertEqual(r.two.back_ref.code, 67) diff --git a/spec/python/test_imports_params_def_array_usertype_imported.py b/spec/python/test_imports_params_def_array_usertype_imported.py index 20b6568d7..2b8a3516e 100644 --- a/spec/python/test_imports_params_def_array_usertype_imported.py +++ b/spec/python/test_imports_params_def_array_usertype_imported.py @@ -6,7 +6,6 @@ class TestImportsParamsDefArrayUsertypeImported(unittest.TestCase): def test_imports_params_def_array_usertype_imported(self): with ImportsParamsDefArrayUsertypeImported.from_file('src/process_xor_4.bin') as r: - self.assertEqual(len(r.hws), 2) self.assertEqual(r.hws[0].one, 236) self.assertEqual(r.hws[1].one, 187) diff --git a/spec/python/test_imports_params_def_enum_imported.py b/spec/python/test_imports_params_def_enum_imported.py index bb4ecdcce..181379710 100644 --- a/spec/python/test_imports_params_def_enum_imported.py +++ b/spec/python/test_imports_params_def_enum_imported.py @@ -8,7 +8,6 @@ class TestImportsParamsDefEnumImported(unittest.TestCase): def test_imports_params_def_enum_imported(self): with ImportsParamsDefEnumImported.from_file('src/enum_0.bin') as r: - self.assertEqual(r.one.pet_1, enum_0.Enum0.Animal.cat) self.assertEqual(r.one.pet_2, enum_deep.EnumDeep.Container1.Container2.Animal.hare) self.assertEqual(r.two.pet_1_param, enum_0.Enum0.Animal.cat) diff --git a/spec/python/test_imports_params_def_usertype_imported.py b/spec/python/test_imports_params_def_usertype_imported.py index cfccbd21b..76f9761fd 100644 --- a/spec/python/test_imports_params_def_usertype_imported.py +++ b/spec/python/test_imports_params_def_usertype_imported.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from imports_params_def_usertype_imported import ImportsParamsDefUsertypeImported class TestImportsParamsDefUsertypeImported(unittest.TestCase): def test_imports_params_def_usertype_imported(self): with ImportsParamsDefUsertypeImported.from_file('src/process_xor_4.bin') as r: - self.assertEqual(r.hw.one, 236) self.assertEqual(r.two.hw_one, 236) diff --git a/spec/python/test_imports_rel_1.py b/spec/python/test_imports_rel_1.py index 947a92a50..fa08b021b 100644 --- a/spec/python/test_imports_rel_1.py +++ b/spec/python/test_imports_rel_1.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from imports_rel_1 import ImportsRel1 class TestImportsRel1(unittest.TestCase): def test_imports_rel_1(self): with ImportsRel1.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.one, 80) self.assertEqual(r.two.one, 65) self.assertEqual(r.two.two.one, 67) diff --git a/spec/python/test_index_sizes.py b/spec/python/test_index_sizes.py index d1d155489..099302b5a 100644 --- a/spec/python/test_index_sizes.py +++ b/spec/python/test_index_sizes.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from index_sizes import IndexSizes class TestIndexSizes(unittest.TestCase): diff --git a/spec/python/test_index_to_param_eos.py b/spec/python/test_index_to_param_eos.py index bea791350..71472737f 100644 --- a/spec/python/test_index_to_param_eos.py +++ b/spec/python/test_index_to_param_eos.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from index_to_param_eos import IndexToParamEos class TestIndexToParamEos(unittest.TestCase): diff --git a/spec/python/test_index_to_param_expr.py b/spec/python/test_index_to_param_expr.py index d0e35f564..2abe69055 100644 --- a/spec/python/test_index_to_param_expr.py +++ b/spec/python/test_index_to_param_expr.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from index_to_param_expr import IndexToParamExpr class TestIndexToParamExpr(unittest.TestCase): diff --git a/spec/python/test_index_to_param_until.py b/spec/python/test_index_to_param_until.py index 4afc55b9a..43099c112 100644 --- a/spec/python/test_index_to_param_until.py +++ b/spec/python/test_index_to_param_until.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from index_to_param_until import IndexToParamUntil class TestIndexToParamUntil(unittest.TestCase): diff --git a/spec/python/test_instance_io_user.py b/spec/python/test_instance_io_user.py index d560ab91f..eb0cdea9f 100644 --- a/spec/python/test_instance_io_user.py +++ b/spec/python/test_instance_io_user.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from instance_io_user import InstanceIoUser class TestInstanceIoUser(unittest.TestCase): diff --git a/spec/python/test_instance_std.py b/spec/python/test_instance_std.py index ad69def28..1cbdf91e7 100644 --- a/spec/python/test_instance_std.py +++ b/spec/python/test_instance_std.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from instance_std import InstanceStd class TestInstanceStd(unittest.TestCase): diff --git a/spec/python/test_instance_std_array.py b/spec/python/test_instance_std_array.py index c7d9e97ae..daf324901 100644 --- a/spec/python/test_instance_std_array.py +++ b/spec/python/test_instance_std_array.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from instance_std_array import InstanceStdArray class TestInstanceStdArray(unittest.TestCase): diff --git a/spec/python/test_instance_user_array.py b/spec/python/test_instance_user_array.py index c63356039..2da05c9af 100644 --- a/spec/python/test_instance_user_array.py +++ b/spec/python/test_instance_user_array.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from instance_user_array import InstanceUserArray class TestInstanceUserArray(unittest.TestCase): diff --git a/spec/python/test_integers.py b/spec/python/test_integers.py index 1573877fa..1511ef6f3 100644 --- a/spec/python/test_integers.py +++ b/spec/python/test_integers.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from integers import Integers class TestIntegers(unittest.TestCase): diff --git a/spec/python/test_integers_double_overflow.py b/spec/python/test_integers_double_overflow.py index a6b334fe3..cdff39aec 100644 --- a/spec/python/test_integers_double_overflow.py +++ b/spec/python/test_integers_double_overflow.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from integers_double_overflow import IntegersDoubleOverflow class TestIntegersDoubleOverflow(unittest.TestCase): def test_integers_double_overflow(self): with IntegersDoubleOverflow.from_file('src/integers_double_overflow.bin') as r: - self.assertEqual(r.signed_safe_min_be, -9007199254740991) self.assertEqual(r.signed_safe_min_le, -9007199254740991) self.assertEqual(r.signed_safe_max_be, 9007199254740991) diff --git a/spec/python/test_integers_min_max.py b/spec/python/test_integers_min_max.py index 8a67d840a..8b93fd5dc 100644 --- a/spec/python/test_integers_min_max.py +++ b/spec/python/test_integers_min_max.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from integers_min_max import IntegersMinMax class TestIntegersMinMax(unittest.TestCase): def test_integers_min_max(self): with IntegersMinMax.from_file('src/integers_min_max.bin') as r: - self.assertEqual(r.unsigned_min.u1, 0) self.assertEqual(r.unsigned_min.u2le, 0) self.assertEqual(r.unsigned_min.u4le, 0) diff --git a/spec/python/test_io_local_var.py b/spec/python/test_io_local_var.py index 506611009..573a67142 100644 --- a/spec/python/test_io_local_var.py +++ b/spec/python/test_io_local_var.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from io_local_var import IoLocalVar class TestIoLocalVar(unittest.TestCase): diff --git a/spec/python/test_js_signed_right_shift.py b/spec/python/test_js_signed_right_shift.py index 63866ed0e..6ea93f496 100644 --- a/spec/python/test_js_signed_right_shift.py +++ b/spec/python/test_js_signed_right_shift.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from js_signed_right_shift import JsSignedRightShift class TestJsSignedRightShift(unittest.TestCase): diff --git a/spec/python/test_meta_tags.py b/spec/python/test_meta_tags.py index e5e03c387..694b313d0 100644 --- a/spec/python/test_meta_tags.py +++ b/spec/python/test_meta_tags.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from meta_tags import MetaTags class TestMetaTags(unittest.TestCase): diff --git a/spec/python/test_meta_xref.py b/spec/python/test_meta_xref.py index 64c881426..d643bc21a 100644 --- a/spec/python/test_meta_xref.py +++ b/spec/python/test_meta_xref.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from meta_xref import MetaXref class TestMetaXref(unittest.TestCase): diff --git a/spec/python/test_multiple_use.py b/spec/python/test_multiple_use.py index 5a13ee564..7e2fc59d3 100644 --- a/spec/python/test_multiple_use.py +++ b/spec/python/test_multiple_use.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from multiple_use import MultipleUse class TestMultipleUse(unittest.TestCase): diff --git a/spec/python/test_nav_parent.py b/spec/python/test_nav_parent.py index dd05d1257..a57b090a8 100644 --- a/spec/python/test_nav_parent.py +++ b/spec/python/test_nav_parent.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nav_parent import NavParent class TestNavParent(unittest.TestCase): diff --git a/spec/python/test_nav_parent2.py b/spec/python/test_nav_parent2.py index c813ca8ea..d97c4def1 100644 --- a/spec/python/test_nav_parent2.py +++ b/spec/python/test_nav_parent2.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nav_parent2 import NavParent2 class TestNavParent2(unittest.TestCase): diff --git a/spec/python/test_nav_parent3.py b/spec/python/test_nav_parent3.py index 83f086ad5..6a560340a 100644 --- a/spec/python/test_nav_parent3.py +++ b/spec/python/test_nav_parent3.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nav_parent3 import NavParent3 class TestNavParent3(unittest.TestCase): diff --git a/spec/python/test_nav_parent_false.py b/spec/python/test_nav_parent_false.py index 95bf984aa..a4aaf349d 100644 --- a/spec/python/test_nav_parent_false.py +++ b/spec/python/test_nav_parent_false.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nav_parent_false import NavParentFalse class TestNavParentFalse(unittest.TestCase): diff --git a/spec/python/test_nav_parent_false2.py b/spec/python/test_nav_parent_false2.py index aa2cdff37..b238c3aa5 100644 --- a/spec/python/test_nav_parent_false2.py +++ b/spec/python/test_nav_parent_false2.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nav_parent_false2 import NavParentFalse2 class TestNavParentFalse2(unittest.TestCase): diff --git a/spec/python/test_nav_parent_override.py b/spec/python/test_nav_parent_override.py index 8309ce9f0..47dcc8806 100644 --- a/spec/python/test_nav_parent_override.py +++ b/spec/python/test_nav_parent_override.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nav_parent_override import NavParentOverride class TestNavParentOverride(unittest.TestCase): diff --git a/spec/python/test_nav_parent_recursive.py b/spec/python/test_nav_parent_recursive.py index 6ced83315..9c4405518 100644 --- a/spec/python/test_nav_parent_recursive.py +++ b/spec/python/test_nav_parent_recursive.py @@ -1,11 +1,9 @@ import unittest - from nav_parent_recursive import NavParentRecursive class TestNavParentRecursive(unittest.TestCase): def test_nav_parent_recursive(self): with NavParentRecursive.from_file('src/enum_negative.bin') as r: - self.assertEqual(r.value, 255) self.assertEqual(r.next.value, 1) self.assertEqual(r.next.parent_value, 255) diff --git a/spec/python/test_nav_parent_switch.py b/spec/python/test_nav_parent_switch.py index c7da42abe..46d128b9f 100644 --- a/spec/python/test_nav_parent_switch.py +++ b/spec/python/test_nav_parent_switch.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nav_parent_switch import NavParentSwitch class TestNavParentSwitch(unittest.TestCase): diff --git a/spec/python/test_nav_parent_switch_cast.py b/spec/python/test_nav_parent_switch_cast.py index a7fbbe89c..38f8cba5d 100644 --- a/spec/python/test_nav_parent_switch_cast.py +++ b/spec/python/test_nav_parent_switch_cast.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nav_parent_switch_cast import NavParentSwitchCast class TestNavParentSwitchCast(unittest.TestCase): def test_nav_parent_switch_cast(self): with NavParentSwitchCast.from_file('src/switch_integers.bin') as r: - self.assertEqual(r.main.buf_type, 1) self.assertEqual(r.main.flag, 7) self.assertEqual(r.main.buf.branch.flag, 7) diff --git a/spec/python/test_nav_parent_vs_value_inst.py b/spec/python/test_nav_parent_vs_value_inst.py index 79bbee8fc..58a0495a3 100644 --- a/spec/python/test_nav_parent_vs_value_inst.py +++ b/spec/python/test_nav_parent_vs_value_inst.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nav_parent_vs_value_inst import NavParentVsValueInst class TestNavParentVsValueInst(unittest.TestCase): diff --git a/spec/python/test_nav_root.py b/spec/python/test_nav_root.py index e4c64651c..967e31b0d 100644 --- a/spec/python/test_nav_root.py +++ b/spec/python/test_nav_root.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nav_root import NavRoot class TestNavRoot(unittest.TestCase): diff --git a/spec/python/test_nav_root_recursive.py b/spec/python/test_nav_root_recursive.py index 947f363f7..5d4ba8202 100644 --- a/spec/python/test_nav_root_recursive.py +++ b/spec/python/test_nav_root_recursive.py @@ -1,11 +1,9 @@ import unittest - from nav_root_recursive import NavRootRecursive class TestNavRootRecursive(unittest.TestCase): def test_nav_root_recursive(self): with NavRootRecursive.from_file('src/enum_negative.bin') as r: - self.assertEqual(r.value, 255) self.assertEqual(r.next.value, 1) self.assertEqual(r.next.root_value, 255) diff --git a/spec/python/test_nested_same_name.py b/spec/python/test_nested_same_name.py index f8a670f58..83c7f2822 100644 --- a/spec/python/test_nested_same_name.py +++ b/spec/python/test_nested_same_name.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nested_same_name import NestedSameName class TestNestedSameName(unittest.TestCase): diff --git a/spec/python/test_nested_same_name2.py b/spec/python/test_nested_same_name2.py index 2bb7c4607..aacb02b1a 100644 --- a/spec/python/test_nested_same_name2.py +++ b/spec/python/test_nested_same_name2.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nested_same_name2 import NestedSameName2 class TestNestedSameName2(unittest.TestCase): diff --git a/spec/python/test_nested_type_param.py b/spec/python/test_nested_type_param.py index aeb50e72a..670f655d7 100644 --- a/spec/python/test_nested_type_param.py +++ b/spec/python/test_nested_type_param.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nested_type_param import NestedTypeParam class TestNestedTypeParam(unittest.TestCase): def test_nested_type_param(self): with NestedTypeParam.from_file('src/term_strz.bin') as r: - self.assertEqual(r.main_seq.my_len, 5) self.assertEqual(r.main_seq.body, u"foo|b") diff --git a/spec/python/test_nested_types.py b/spec/python/test_nested_types.py index 4911778aa..b5873174d 100644 --- a/spec/python/test_nested_types.py +++ b/spec/python/test_nested_types.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nested_types import NestedTypes class TestNestedTypes(unittest.TestCase): diff --git a/spec/python/test_nested_types2.py b/spec/python/test_nested_types2.py index b9b263d3e..7768adfc3 100644 --- a/spec/python/test_nested_types2.py +++ b/spec/python/test_nested_types2.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nested_types2 import NestedTypes2 class TestNestedTypes2(unittest.TestCase): diff --git a/spec/python/test_nested_types3.py b/spec/python/test_nested_types3.py index e20755f17..13a44251c 100644 --- a/spec/python/test_nested_types3.py +++ b/spec/python/test_nested_types3.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nested_types3 import NestedTypes3 class TestNestedTypes3(unittest.TestCase): diff --git a/spec/python/test_nested_types_import.py b/spec/python/test_nested_types_import.py index 124491dae..880ce17cf 100644 --- a/spec/python/test_nested_types_import.py +++ b/spec/python/test_nested_types_import.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from nested_types_import import NestedTypesImport class TestNestedTypesImport(unittest.TestCase): def test_nested_types_import(self): with NestedTypesImport.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.a_cc.value_cc, 80) self.assertEqual(r.a_c_d.value_d, 65) self.assertEqual(r.b.value_b, 67) diff --git a/spec/python/test_non_standard.py b/spec/python/test_non_standard.py index e62a951d5..11bce5aab 100644 --- a/spec/python/test_non_standard.py +++ b/spec/python/test_non_standard.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from non_standard import NonStandard class TestNonStandard(unittest.TestCase): diff --git a/spec/python/test_optional_id.py b/spec/python/test_optional_id.py index edad828c8..de42c9071 100644 --- a/spec/python/test_optional_id.py +++ b/spec/python/test_optional_id.py @@ -1,11 +1,9 @@ import unittest - from optional_id import OptionalId class TestOptionalId(unittest.TestCase): def test_optional_id(self): with OptionalId.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r._unnamed0, 80) self.assertEqual(r._unnamed1, 65) self.assertEqual(r._unnamed2, b"\x43\x4B\x2D\x31\xFF") diff --git a/spec/python/test_params_call.py b/spec/python/test_params_call.py index 1e1254db7..306a9a5b0 100644 --- a/spec/python/test_params_call.py +++ b/spec/python/test_params_call.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from params_call import ParamsCall class TestParamsCall(unittest.TestCase): diff --git a/spec/python/test_params_call_extra_parens.py b/spec/python/test_params_call_extra_parens.py index 5035e7de4..a129cf8d6 100644 --- a/spec/python/test_params_call_extra_parens.py +++ b/spec/python/test_params_call_extra_parens.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from params_call_extra_parens import ParamsCallExtraParens class TestParamsCallExtraParens(unittest.TestCase): def test_params_call_extra_parens(self): with ParamsCallExtraParens.from_file('src/term_strz.bin') as r: - self.assertEqual(r.buf1.body, u"foo|b") diff --git a/spec/python/test_params_enum.py b/spec/python/test_params_enum.py index b055f2f75..39e1efdc4 100644 --- a/spec/python/test_params_enum.py +++ b/spec/python/test_params_enum.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from params_enum import ParamsEnum import params_enum diff --git a/spec/python/test_params_pass_array_int.py b/spec/python/test_params_pass_array_int.py index 4b86d23e4..d2a0bb7d3 100644 --- a/spec/python/test_params_pass_array_int.py +++ b/spec/python/test_params_pass_array_int.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from params_pass_array_int import ParamsPassArrayInt class TestParamsPassArrayInt(unittest.TestCase): def test_params_pass_array_int(self): with ParamsPassArrayInt.from_file('src/position_to_end.bin') as r: - self.assertEqual(len(r.pass_ints.nums), 3) self.assertEqual(r.pass_ints.nums[0], 513) self.assertEqual(r.pass_ints.nums[1], 1027) diff --git a/spec/python/test_params_pass_array_str.py b/spec/python/test_params_pass_array_str.py index f5bc09ea6..e947bb4c4 100644 --- a/spec/python/test_params_pass_array_str.py +++ b/spec/python/test_params_pass_array_str.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from params_pass_array_str import ParamsPassArrayStr class TestParamsPassArrayStr(unittest.TestCase): def test_params_pass_array_str(self): with ParamsPassArrayStr.from_file('src/term_strz.bin') as r: - self.assertEqual(len(r.pass_str_array.strs), 3) self.assertEqual(r.pass_str_array.strs[0], u"fo") self.assertEqual(r.pass_str_array.strs[1], u"o|") diff --git a/spec/python/test_params_pass_array_struct.py b/spec/python/test_params_pass_array_struct.py index af03e8b26..d2a5a41ac 100644 --- a/spec/python/test_params_pass_array_struct.py +++ b/spec/python/test_params_pass_array_struct.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from params_pass_array_struct import ParamsPassArrayStruct class TestParamsPassArrayStruct(unittest.TestCase): def test_params_pass_array_struct(self): with ParamsPassArrayStruct.from_file('src/position_to_end.bin') as r: - self.assertEqual(len(r.pass_structs.structs), 2) self.assertEqual(r.pass_structs.structs[0].f, 1) self.assertEqual(r.pass_structs.structs[1].b, 2) diff --git a/spec/python/test_params_pass_array_usertype.py b/spec/python/test_params_pass_array_usertype.py index f2e438d0e..4e94da370 100644 --- a/spec/python/test_params_pass_array_usertype.py +++ b/spec/python/test_params_pass_array_usertype.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from params_pass_array_usertype import ParamsPassArrayUsertype class TestParamsPassArrayUsertype(unittest.TestCase): def test_params_pass_array_usertype(self): with ParamsPassArrayUsertype.from_file('src/position_to_end.bin') as r: - self.assertEqual(len(r.pass_blocks.bar), 2) self.assertEqual(r.pass_blocks.bar[0].foo, 1) self.assertEqual(r.pass_blocks.bar[1].foo, 2) diff --git a/spec/python/test_params_pass_bool.py b/spec/python/test_params_pass_bool.py index ecd35ed9a..e8ffab189 100644 --- a/spec/python/test_params_pass_bool.py +++ b/spec/python/test_params_pass_bool.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from params_pass_bool import ParamsPassBool class TestParamsPassBool(unittest.TestCase): def test_params_pass_bool(self): with ParamsPassBool.from_file('src/term_strz.bin') as r: - self.assertEqual(r.s_false, False) self.assertEqual(r.s_true, True) self.assertEqual(r.seq_b1.arg, True) diff --git a/spec/python/test_params_pass_struct.py b/spec/python/test_params_pass_struct.py index fdede070d..509ff668a 100644 --- a/spec/python/test_params_pass_struct.py +++ b/spec/python/test_params_pass_struct.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from params_pass_struct import ParamsPassStruct class TestParamsPassStruct(unittest.TestCase): def test_params_pass_struct(self): with ParamsPassStruct.from_file('src/enum_negative.bin') as r: - self.assertEqual(r.first.foo, 255) self.assertEqual(r.one.bar.qux, 1) self.assertEqual(r.one.foo.foo, 255) diff --git a/spec/python/test_params_pass_usertype.py b/spec/python/test_params_pass_usertype.py index e9b1561ba..fd2121dba 100644 --- a/spec/python/test_params_pass_usertype.py +++ b/spec/python/test_params_pass_usertype.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from params_pass_usertype import ParamsPassUsertype class TestParamsPassUsertype(unittest.TestCase): diff --git a/spec/python/test_position_abs.py b/spec/python/test_position_abs.py index 1fd9cc7ae..da163f6f0 100644 --- a/spec/python/test_position_abs.py +++ b/spec/python/test_position_abs.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from position_abs import PositionAbs class TestPositionAbs(unittest.TestCase): diff --git a/spec/python/test_position_in_seq.py b/spec/python/test_position_in_seq.py index cbf5829ab..9298ce814 100644 --- a/spec/python/test_position_in_seq.py +++ b/spec/python/test_position_in_seq.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from position_in_seq import PositionInSeq class TestPositionInSeq(unittest.TestCase): diff --git a/spec/python/test_position_to_end.py b/spec/python/test_position_to_end.py index 6a9b91959..90ec1ff68 100644 --- a/spec/python/test_position_to_end.py +++ b/spec/python/test_position_to_end.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from position_to_end import PositionToEnd class TestPositionToEnd(unittest.TestCase): diff --git a/spec/python/test_process_coerce_bytes.py b/spec/python/test_process_coerce_bytes.py index 72203984a..23a17d4bc 100644 --- a/spec/python/test_process_coerce_bytes.py +++ b/spec/python/test_process_coerce_bytes.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_coerce_bytes import ProcessCoerceBytes class TestProcessCoerceBytes(unittest.TestCase): diff --git a/spec/python/test_process_coerce_switch.py b/spec/python/test_process_coerce_switch.py index d68321486..6543fd2a6 100644 --- a/spec/python/test_process_coerce_switch.py +++ b/spec/python/test_process_coerce_switch.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_coerce_switch import ProcessCoerceSwitch class TestProcessCoerceSwitch(unittest.TestCase): diff --git a/spec/python/test_process_coerce_usertype1.py b/spec/python/test_process_coerce_usertype1.py index 1a479e0f9..006b89927 100644 --- a/spec/python/test_process_coerce_usertype1.py +++ b/spec/python/test_process_coerce_usertype1.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_coerce_usertype1 import ProcessCoerceUsertype1 class TestProcessCoerceUsertype1(unittest.TestCase): diff --git a/spec/python/test_process_coerce_usertype2.py b/spec/python/test_process_coerce_usertype2.py index a5d318743..bf1d0d999 100644 --- a/spec/python/test_process_coerce_usertype2.py +++ b/spec/python/test_process_coerce_usertype2.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_coerce_usertype2 import ProcessCoerceUsertype2 class TestProcessCoerceUsertype2(unittest.TestCase): diff --git a/spec/python/test_process_custom.py b/spec/python/test_process_custom.py index 85e553f1c..a34cf410d 100644 --- a/spec/python/test_process_custom.py +++ b/spec/python/test_process_custom.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_custom import ProcessCustom class TestProcessCustom(unittest.TestCase): diff --git a/spec/python/test_process_custom_no_args.py b/spec/python/test_process_custom_no_args.py index d710f34a3..452018429 100644 --- a/spec/python/test_process_custom_no_args.py +++ b/spec/python/test_process_custom_no_args.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_custom_no_args import ProcessCustomNoArgs class TestProcessCustomNoArgs(unittest.TestCase): def test_process_custom_no_args(self): with ProcessCustomNoArgs.from_file('src/process_rotate.bin') as r: - self.assertEqual(r.buf, b"\x5F\x09\xAC\x8D\x8D\xED\x5F") diff --git a/spec/python/test_process_repeat_bytes.py b/spec/python/test_process_repeat_bytes.py index 6c299444f..0339921ca 100644 --- a/spec/python/test_process_repeat_bytes.py +++ b/spec/python/test_process_repeat_bytes.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_repeat_bytes import ProcessRepeatBytes class TestProcessRepeatBytes(unittest.TestCase): def test_process_repeat_bytes(self): with ProcessRepeatBytes.from_file('src/process_xor_4.bin') as r: - self.assertEqual(r.bufs[0], b"\x72\x25\x3D\x8A\x14") self.assertEqual(r.bufs[1], b"\x4A\x52\xAA\x10\x44") diff --git a/spec/python/test_process_repeat_usertype.py b/spec/python/test_process_repeat_usertype.py index 6f0e6501a..cdc4c7b5a 100644 --- a/spec/python/test_process_repeat_usertype.py +++ b/spec/python/test_process_repeat_usertype.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_repeat_usertype import ProcessRepeatUsertype class TestProcessRepeatUsertype(unittest.TestCase): def test_process_repeat_usertype(self): with ProcessRepeatUsertype.from_file('src/process_xor_4.bin') as r: - self.assertEqual(r.blocks[0].a, -1975704206) self.assertEqual(r.blocks[0].b, 20) self.assertEqual(r.blocks[1].a, 279597642) diff --git a/spec/python/test_process_rotate.py b/spec/python/test_process_rotate.py index 1419a25a3..40d57e37d 100644 --- a/spec/python/test_process_rotate.py +++ b/spec/python/test_process_rotate.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_rotate import ProcessRotate class TestProcessRotate(unittest.TestCase): diff --git a/spec/python/test_process_to_user.py b/spec/python/test_process_to_user.py index 9d3f12111..135199377 100644 --- a/spec/python/test_process_to_user.py +++ b/spec/python/test_process_to_user.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_to_user import ProcessToUser class TestProcessToUser(unittest.TestCase): diff --git a/spec/python/test_process_xor4_const.py b/spec/python/test_process_xor4_const.py index 58059faba..ca162a5d9 100644 --- a/spec/python/test_process_xor4_const.py +++ b/spec/python/test_process_xor4_const.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_xor4_const import ProcessXor4Const class TestProcessXor4Const(unittest.TestCase): diff --git a/spec/python/test_process_xor4_value.py b/spec/python/test_process_xor4_value.py index 0c89ae604..baf0d848f 100644 --- a/spec/python/test_process_xor4_value.py +++ b/spec/python/test_process_xor4_value.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_xor4_value import ProcessXor4Value class TestProcessXor4Value(unittest.TestCase): diff --git a/spec/python/test_process_xor_const.py b/spec/python/test_process_xor_const.py index c087b5baa..322f296db 100644 --- a/spec/python/test_process_xor_const.py +++ b/spec/python/test_process_xor_const.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_xor_const import ProcessXorConst class TestProcessXorConst(unittest.TestCase): diff --git a/spec/python/test_process_xor_value.py b/spec/python/test_process_xor_value.py index 4657a3793..561558af0 100644 --- a/spec/python/test_process_xor_value.py +++ b/spec/python/test_process_xor_value.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from process_xor_value import ProcessXorValue class TestProcessXorValue(unittest.TestCase): diff --git a/spec/python/test_recursive_one.py b/spec/python/test_recursive_one.py index c637fc3b0..851779172 100644 --- a/spec/python/test_recursive_one.py +++ b/spec/python/test_recursive_one.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from recursive_one import RecursiveOne class TestRecursiveOne(unittest.TestCase): diff --git a/spec/python/test_repeat_eos_bit.py b/spec/python/test_repeat_eos_bit.py index 678b7b35a..570c669ae 100644 --- a/spec/python/test_repeat_eos_bit.py +++ b/spec/python/test_repeat_eos_bit.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from repeat_eos_bit import RepeatEosBit class TestRepeatEosBit(unittest.TestCase): diff --git a/spec/python/test_repeat_eos_struct.py b/spec/python/test_repeat_eos_struct.py index 11d7ea785..e1f19fcc7 100644 --- a/spec/python/test_repeat_eos_struct.py +++ b/spec/python/test_repeat_eos_struct.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from repeat_eos_struct import RepeatEosStruct class TestRepeatEosStruct(unittest.TestCase): diff --git a/spec/python/test_repeat_eos_u4.py b/spec/python/test_repeat_eos_u4.py index f1c468852..caade6f43 100644 --- a/spec/python/test_repeat_eos_u4.py +++ b/spec/python/test_repeat_eos_u4.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from repeat_eos_u4 import RepeatEosU4 class TestRepeatEosU4(unittest.TestCase): diff --git a/spec/python/test_repeat_n_struct.py b/spec/python/test_repeat_n_struct.py index d9ae60f7c..9b135541a 100644 --- a/spec/python/test_repeat_n_struct.py +++ b/spec/python/test_repeat_n_struct.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from repeat_n_struct import RepeatNStruct class TestRepeatNStruct(unittest.TestCase): diff --git a/spec/python/test_repeat_n_strz.py b/spec/python/test_repeat_n_strz.py index 04b922ad0..117f1cc54 100644 --- a/spec/python/test_repeat_n_strz.py +++ b/spec/python/test_repeat_n_strz.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from repeat_n_strz import RepeatNStrz class TestRepeatNStrz(unittest.TestCase): diff --git a/spec/python/test_repeat_n_strz_double.py b/spec/python/test_repeat_n_strz_double.py index b1f9a63b8..31b57df4a 100644 --- a/spec/python/test_repeat_n_strz_double.py +++ b/spec/python/test_repeat_n_strz_double.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from repeat_n_strz_double import RepeatNStrzDouble class TestRepeatNStrzDouble(unittest.TestCase): diff --git a/spec/python/test_repeat_until_calc_array_type.py b/spec/python/test_repeat_until_calc_array_type.py index fd22e36b9..4e4fcb6d1 100644 --- a/spec/python/test_repeat_until_calc_array_type.py +++ b/spec/python/test_repeat_until_calc_array_type.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from repeat_until_calc_array_type import RepeatUntilCalcArrayType class TestRepeatUntilCalcArrayType(unittest.TestCase): def test_repeat_until_calc_array_type(self): with RepeatUntilCalcArrayType.from_file('src/repeat_until_process.bin') as r: - self.assertEqual(len(r.records), 3) self.assertEqual(r.records[0].marker, 232) self.assertEqual(r.records[0].body, 2863311546) diff --git a/spec/python/test_repeat_until_complex.py b/spec/python/test_repeat_until_complex.py index a6471a3a1..fb9920567 100644 --- a/spec/python/test_repeat_until_complex.py +++ b/spec/python/test_repeat_until_complex.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from repeat_until_complex import RepeatUntilComplex class TestRepeatUntilComplex(unittest.TestCase): diff --git a/spec/python/test_repeat_until_s4.py b/spec/python/test_repeat_until_s4.py index c44d4b4ab..0c1cc651a 100644 --- a/spec/python/test_repeat_until_s4.py +++ b/spec/python/test_repeat_until_s4.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from repeat_until_s4 import RepeatUntilS4 class TestRepeatUntilS4(unittest.TestCase): diff --git a/spec/python/test_repeat_until_sized.py b/spec/python/test_repeat_until_sized.py index 8f0027920..68d2cc745 100644 --- a/spec/python/test_repeat_until_sized.py +++ b/spec/python/test_repeat_until_sized.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from repeat_until_sized import RepeatUntilSized class TestRepeatUntilSized(unittest.TestCase): diff --git a/spec/python/test_str_encodings.py b/spec/python/test_str_encodings.py index e70116de3..27c89d6ea 100644 --- a/spec/python/test_str_encodings.py +++ b/spec/python/test_str_encodings.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from str_encodings import StrEncodings class TestStrEncodings(unittest.TestCase): diff --git a/spec/python/test_str_encodings_default.py b/spec/python/test_str_encodings_default.py index 82e5de21e..d045030c3 100644 --- a/spec/python/test_str_encodings_default.py +++ b/spec/python/test_str_encodings_default.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from str_encodings_default import StrEncodingsDefault class TestStrEncodingsDefault(unittest.TestCase): diff --git a/spec/python/test_str_encodings_utf16.py b/spec/python/test_str_encodings_utf16.py index 8927d85aa..d30aa0bd4 100644 --- a/spec/python/test_str_encodings_utf16.py +++ b/spec/python/test_str_encodings_utf16.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from str_encodings_utf16 import StrEncodingsUtf16 class TestStrEncodingsUtf16(unittest.TestCase): def test_str_encodings_utf16(self): with StrEncodingsUtf16.from_file('src/str_encodings_utf16.bin') as r: - self.assertEqual(r.len_be, 12) self.assertEqual(r.be_bom_removed.bom, 65279) self.assertEqual(r.be_bom_removed.str, u"\u3053\u3093\u306b\u3061\u306f") diff --git a/spec/python/test_str_eos.py b/spec/python/test_str_eos.py index 8875b9c61..d96122e08 100644 --- a/spec/python/test_str_eos.py +++ b/spec/python/test_str_eos.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from str_eos import StrEos class TestStrEos(unittest.TestCase): diff --git a/spec/python/test_str_literals2.py b/spec/python/test_str_literals2.py index 9314bef57..925edfe62 100644 --- a/spec/python/test_str_literals2.py +++ b/spec/python/test_str_literals2.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from str_literals2 import StrLiterals2 class TestStrLiterals2(unittest.TestCase): diff --git a/spec/python/test_str_literals_latin1.py b/spec/python/test_str_literals_latin1.py index 2467de5d3..3f068301d 100644 --- a/spec/python/test_str_literals_latin1.py +++ b/spec/python/test_str_literals_latin1.py @@ -6,5 +6,4 @@ class TestStrLiteralsLatin1(unittest.TestCase): def test_str_literals_latin1(self): with StrLiteralsLatin1.from_file('src/str_literals_latin1.bin') as r: - self.assertEqual(r.parsed_eq_literal, True) diff --git a/spec/python/test_str_pad_term.py b/spec/python/test_str_pad_term.py index 5ccc32897..1eba2be7d 100644 --- a/spec/python/test_str_pad_term.py +++ b/spec/python/test_str_pad_term.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from str_pad_term import StrPadTerm class TestStrPadTerm(unittest.TestCase): diff --git a/spec/python/test_str_pad_term_empty.py b/spec/python/test_str_pad_term_empty.py index 62a9a38e8..f40cbfda8 100644 --- a/spec/python/test_str_pad_term_empty.py +++ b/spec/python/test_str_pad_term_empty.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from str_pad_term_empty import StrPadTermEmpty class TestStrPadTermEmpty(unittest.TestCase): diff --git a/spec/python/test_str_pad_term_utf16.py b/spec/python/test_str_pad_term_utf16.py index 51613e4d2..ee12f27b6 100644 --- a/spec/python/test_str_pad_term_utf16.py +++ b/spec/python/test_str_pad_term_utf16.py @@ -6,7 +6,6 @@ class TestStrPadTermUtf16(unittest.TestCase): def test_str_pad_term_utf16(self): with StrPadTermUtf16.from_file('src/str_pad_term_utf16.bin') as r: - self.assertEqual(r.str_term, u"a\u0200b") self.assertEqual(r.str_term_include, u"c\u0200d\000") self.assertEqual(r.str_term_and_pad, u"e\u0200f") diff --git a/spec/python/test_switch_bytearray.py b/spec/python/test_switch_bytearray.py index 74aee0a8f..1cbd383e1 100644 --- a/spec/python/test_switch_bytearray.py +++ b/spec/python/test_switch_bytearray.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_bytearray import SwitchBytearray class TestSwitchBytearray(unittest.TestCase): diff --git a/spec/python/test_switch_else_only.py b/spec/python/test_switch_else_only.py index 0f2ec2fd2..55fc8fd68 100644 --- a/spec/python/test_switch_else_only.py +++ b/spec/python/test_switch_else_only.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_else_only import SwitchElseOnly class TestSwitchElseOnly(unittest.TestCase): def test_switch_else_only(self): with SwitchElseOnly.from_file('src/switch_opcodes.bin') as r: - self.assertEqual(r.opcode, 83) self.assertEqual(r.prim_byte, 102) self.assertEqual(r.ut.value, b"\x72\x00\x49\x42") diff --git a/spec/python/test_switch_integers.py b/spec/python/test_switch_integers.py index 1d03b9ad4..75b7aabf0 100644 --- a/spec/python/test_switch_integers.py +++ b/spec/python/test_switch_integers.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_integers import SwitchIntegers class TestSwitchIntegers(unittest.TestCase): diff --git a/spec/python/test_switch_integers2.py b/spec/python/test_switch_integers2.py index f008cad74..a88ddb0cb 100644 --- a/spec/python/test_switch_integers2.py +++ b/spec/python/test_switch_integers2.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_integers2 import SwitchIntegers2 class TestSwitchIntegers2(unittest.TestCase): diff --git a/spec/python/test_switch_manual_enum.py b/spec/python/test_switch_manual_enum.py index ce8435e58..7707af8a4 100644 --- a/spec/python/test_switch_manual_enum.py +++ b/spec/python/test_switch_manual_enum.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_manual_enum import SwitchManualEnum import switch_manual_enum diff --git a/spec/python/test_switch_manual_enum_invalid.py b/spec/python/test_switch_manual_enum_invalid.py index ae5f09c7e..ea8be3102 100644 --- a/spec/python/test_switch_manual_enum_invalid.py +++ b/spec/python/test_switch_manual_enum_invalid.py @@ -1,11 +1,9 @@ import unittest - from switch_manual_enum_invalid import SwitchManualEnumInvalid class TestSwitchManualEnumInvalid(unittest.TestCase): def test_switch_manual_enum_invalid(self): with SwitchManualEnumInvalid.from_file('src/enum_negative.bin') as r: - self.assertEqual(len(r.opcodes), 2) self.assertEqual(r.opcodes[0].code, 255) self.assertFalse(hasattr(r.opcodes[0], 'body')) diff --git a/spec/python/test_switch_manual_enum_invalid_else.py b/spec/python/test_switch_manual_enum_invalid_else.py index 80b3b6dd2..292b2e1a6 100644 --- a/spec/python/test_switch_manual_enum_invalid_else.py +++ b/spec/python/test_switch_manual_enum_invalid_else.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_manual_enum_invalid_else import SwitchManualEnumInvalidElse class TestSwitchManualEnumInvalidElse(unittest.TestCase): def test_switch_manual_enum_invalid_else(self): with SwitchManualEnumInvalidElse.from_file('src/enum_negative.bin') as r: - self.assertEqual(len(r.opcodes), 2) self.assertEqual(r.opcodes[0].code, 255) self.assertEqual(r.opcodes[0].body.value, 123) diff --git a/spec/python/test_switch_manual_int.py b/spec/python/test_switch_manual_int.py index ccbbd36bb..8de95354f 100644 --- a/spec/python/test_switch_manual_int.py +++ b/spec/python/test_switch_manual_int.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_manual_int import SwitchManualInt class TestSwitchManualInt(unittest.TestCase): diff --git a/spec/python/test_switch_manual_int_else.py b/spec/python/test_switch_manual_int_else.py index e514b8c1b..ade454197 100644 --- a/spec/python/test_switch_manual_int_else.py +++ b/spec/python/test_switch_manual_int_else.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_manual_int_else import SwitchManualIntElse class TestSwitchManualIntElse(unittest.TestCase): diff --git a/spec/python/test_switch_manual_int_size.py b/spec/python/test_switch_manual_int_size.py index ddced486e..d905b89c8 100644 --- a/spec/python/test_switch_manual_int_size.py +++ b/spec/python/test_switch_manual_int_size.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_manual_int_size import SwitchManualIntSize class TestSwitchManualIntSize(unittest.TestCase): def test_switch_manual_int_size(self): with SwitchManualIntSize.from_file('src/switch_tlv.bin') as r: - self.assertEqual(len(r.chunks), 4) self.assertEqual(r.chunks[0].code, 17) self.assertEqual(r.chunks[0].body.title, u"Stuff") diff --git a/spec/python/test_switch_manual_int_size_else.py b/spec/python/test_switch_manual_int_size_else.py index 6d95bd8d9..b223ce8d6 100644 --- a/spec/python/test_switch_manual_int_size_else.py +++ b/spec/python/test_switch_manual_int_size_else.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_manual_int_size_else import SwitchManualIntSizeElse class TestSwitchManualIntSizeElse(unittest.TestCase): diff --git a/spec/python/test_switch_manual_int_size_eos.py b/spec/python/test_switch_manual_int_size_eos.py index c303d146e..163082163 100644 --- a/spec/python/test_switch_manual_int_size_eos.py +++ b/spec/python/test_switch_manual_int_size_eos.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_manual_int_size_eos import SwitchManualIntSizeEos class TestSwitchManualIntSizeEos(unittest.TestCase): def test_switch_manual_int_size_eos(self): with SwitchManualIntSizeEos.from_file('src/switch_tlv.bin') as r: - self.assertEqual(len(r.chunks), 4) self.assertEqual(r.chunks[0].code, 17) self.assertEqual(r.chunks[0].body.body.title, u"Stuff") diff --git a/spec/python/test_switch_manual_str.py b/spec/python/test_switch_manual_str.py index 1b153eb96..cd76eec84 100644 --- a/spec/python/test_switch_manual_str.py +++ b/spec/python/test_switch_manual_str.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_manual_str import SwitchManualStr class TestSwitchManualStr(unittest.TestCase): diff --git a/spec/python/test_switch_manual_str_else.py b/spec/python/test_switch_manual_str_else.py index a8911cbe7..1dec686a3 100644 --- a/spec/python/test_switch_manual_str_else.py +++ b/spec/python/test_switch_manual_str_else.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_manual_str_else import SwitchManualStrElse class TestSwitchManualStrElse(unittest.TestCase): diff --git a/spec/python/test_switch_multi_bool_ops.py b/spec/python/test_switch_multi_bool_ops.py index 298dcc7e9..68603fe38 100644 --- a/spec/python/test_switch_multi_bool_ops.py +++ b/spec/python/test_switch_multi_bool_ops.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_multi_bool_ops import SwitchMultiBoolOps class TestSwitchMultiBoolOps(unittest.TestCase): def test_switch_multi_bool_ops(self): with SwitchMultiBoolOps.from_file('src/switch_integers.bin') as r: - self.assertEqual(len(r.opcodes), 4) self.assertEqual(r.opcodes[0].code, 1) self.assertEqual(r.opcodes[0].body, 7) diff --git a/spec/python/test_switch_repeat_expr.py b/spec/python/test_switch_repeat_expr.py index 9df15b511..59aee3102 100644 --- a/spec/python/test_switch_repeat_expr.py +++ b/spec/python/test_switch_repeat_expr.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_repeat_expr import SwitchRepeatExpr class TestSwitchRepeatExpr(unittest.TestCase): def test_switch_repeat_expr(self): with SwitchRepeatExpr.from_file('src/switch_tlv.bin') as r: - self.assertEqual(r.code, 17) self.assertEqual(r.size, 9) self.assertEqual(r.body[0].first, b"\x53\x74\x75\x66\x66\x00\x4D\x65\x00") diff --git a/spec/python/test_switch_repeat_expr_invalid.py b/spec/python/test_switch_repeat_expr_invalid.py index 64230df5c..382d1b6be 100644 --- a/spec/python/test_switch_repeat_expr_invalid.py +++ b/spec/python/test_switch_repeat_expr_invalid.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from switch_repeat_expr_invalid import SwitchRepeatExprInvalid class TestSwitchRepeatExprInvalid(unittest.TestCase): def test_switch_repeat_expr_invalid(self): with SwitchRepeatExprInvalid.from_file('src/switch_tlv.bin') as r: - self.assertEqual(r.code, 17) self.assertEqual(r.size, 9) self.assertEqual(r.body[0], b"\x53\x74\x75\x66\x66\x00\x4D\x65\x00") diff --git a/spec/python/test_term_bytes.py b/spec/python/test_term_bytes.py index 216738577..e81e2cb24 100644 --- a/spec/python/test_term_bytes.py +++ b/spec/python/test_term_bytes.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from term_bytes import TermBytes class TestTermBytes(unittest.TestCase): diff --git a/spec/python/test_term_strz.py b/spec/python/test_term_strz.py index ecb47b18f..6bb8578c2 100644 --- a/spec/python/test_term_strz.py +++ b/spec/python/test_term_strz.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from term_strz import TermStrz class TestTermStrz(unittest.TestCase): diff --git a/spec/python/test_term_strz_utf16_v1.py b/spec/python/test_term_strz_utf16_v1.py index ecfa69307..0a9262c62 100644 --- a/spec/python/test_term_strz_utf16_v1.py +++ b/spec/python/test_term_strz_utf16_v1.py @@ -6,7 +6,6 @@ class TestTermStrzUtf16V1(unittest.TestCase): def test_term_strz_utf16_v1(self): with TermStrzUtf16V1.from_file('src/term_strz_utf16.bin') as r: - self.assertEqual(r.s1, u"a\u0200b") self.assertEqual(r.s2, u"c\u0200d") self.assertEqual(r.term, 0) diff --git a/spec/python/test_term_strz_utf16_v2.py b/spec/python/test_term_strz_utf16_v2.py index 5c2bb93ad..f51d1404e 100644 --- a/spec/python/test_term_strz_utf16_v2.py +++ b/spec/python/test_term_strz_utf16_v2.py @@ -6,7 +6,6 @@ class TestTermStrzUtf16V2(unittest.TestCase): def test_term_strz_utf16_v2(self): with TermStrzUtf16V2.from_file('src/term_strz_utf16.bin') as r: - self.assertEqual(r.s1, u"a\u0200b") self.assertEqual(r.s2, u"c\u0200d\000") self.assertEqual(r.s3, u"e\u0200f") diff --git a/spec/python/test_term_strz_utf16_v3.py b/spec/python/test_term_strz_utf16_v3.py index f67baaa30..407a5bc51 100644 --- a/spec/python/test_term_strz_utf16_v3.py +++ b/spec/python/test_term_strz_utf16_v3.py @@ -6,7 +6,6 @@ class TestTermStrzUtf16V3(unittest.TestCase): def test_term_strz_utf16_v3(self): with TermStrzUtf16V3.from_file('src/term_strz_utf16.bin') as r: - self.assertEqual(r.s1, u"a\u0200b") self.assertEqual(r.term, 0) self.assertEqual(r.s2, u"c\u0200d") diff --git a/spec/python/test_term_strz_utf16_v4.py b/spec/python/test_term_strz_utf16_v4.py index b677a97e8..c4434280d 100644 --- a/spec/python/test_term_strz_utf16_v4.py +++ b/spec/python/test_term_strz_utf16_v4.py @@ -6,7 +6,6 @@ class TestTermStrzUtf16V4(unittest.TestCase): def test_term_strz_utf16_v4(self): with TermStrzUtf16V4.from_file('src/term_strz_utf16.bin') as r: - self.assertEqual(r.s1.value, u"a\u0200b") self.assertEqual(r.s2.value, u"c\u0200d") self.assertEqual(r.s3.value, u"e\u0200f") diff --git a/spec/python/test_term_u1_val.py b/spec/python/test_term_u1_val.py index 43f808997..3334b10ae 100644 --- a/spec/python/test_term_u1_val.py +++ b/spec/python/test_term_u1_val.py @@ -1,12 +1,10 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from term_u1_val import TermU1Val class TestTermU1Val(unittest.TestCase): def test_term_u1_val(self): with TermU1Val.from_file('src/str_encodings.bin') as r: - self.assertEqual(r.foo, b"\x0A\x00\x53\x6F\x6D\x65\x20\x41\x53\x43\x49\x49\x0F\x00") self.assertEqual(r.bar, u"\u3053\u3093\u306b") diff --git a/spec/python/test_ts_packet_header.py b/spec/python/test_ts_packet_header.py index 1912387e2..7b8e8aff8 100644 --- a/spec/python/test_ts_packet_header.py +++ b/spec/python/test_ts_packet_header.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from ts_packet_header import TsPacketHeader import ts_packet_header diff --git a/spec/python/test_type_int_unary_op.py b/spec/python/test_type_int_unary_op.py index 2d1ce83c1..64a7bbd15 100644 --- a/spec/python/test_type_int_unary_op.py +++ b/spec/python/test_type_int_unary_op.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from type_int_unary_op import TypeIntUnaryOp class TestTypeIntUnaryOp(unittest.TestCase): diff --git a/spec/python/test_type_ternary.py b/spec/python/test_type_ternary.py index ddd01dc3b..b09f5c28a 100644 --- a/spec/python/test_type_ternary.py +++ b/spec/python/test_type_ternary.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from type_ternary import TypeTernary class TestTypeTernary(unittest.TestCase): diff --git a/spec/python/test_type_ternary_2nd_falsy.py b/spec/python/test_type_ternary_2nd_falsy.py index aeaf7c562..02beb504f 100644 --- a/spec/python/test_type_ternary_2nd_falsy.py +++ b/spec/python/test_type_ternary_2nd_falsy.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from type_ternary_2nd_falsy import TypeTernary2ndFalsy class TestTypeTernary2ndFalsy(unittest.TestCase): def test_type_ternary_2nd_falsy(self): with TypeTernary2ndFalsy.from_file('src/switch_integers.bin') as r: - self.assertEqual(r.v_false, False) self.assertEqual(r.v_int_zero, 0) self.assertEqual(r.v_int_neg_zero, -0) diff --git a/spec/python/test_user_type.py b/spec/python/test_user_type.py index 793947170..d53685925 100644 --- a/spec/python/test_user_type.py +++ b/spec/python/test_user_type.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from user_type import UserType class TestUserType(unittest.TestCase): diff --git a/spec/python/test_valid_eq_str_encodings.py b/spec/python/test_valid_eq_str_encodings.py index 20f946546..e0dda2cd5 100644 --- a/spec/python/test_valid_eq_str_encodings.py +++ b/spec/python/test_valid_eq_str_encodings.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_eq_str_encodings import ValidEqStrEncodings class TestValidEqStrEncodings(unittest.TestCase): def test_valid_eq_str_encodings(self): with ValidEqStrEncodings.from_file('src/str_encodings.bin') as r: - pass diff --git a/spec/python/test_valid_fail_anyof_int.py b/spec/python/test_valid_fail_anyof_int.py index 13e642f8e..75ce2e27f 100644 --- a/spec/python/test_valid_fail_anyof_int.py +++ b/spec/python/test_valid_fail_anyof_int.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_anyof_int import ValidFailAnyofInt import kaitaistruct diff --git a/spec/python/test_valid_fail_contents.py b/spec/python/test_valid_fail_contents.py index 755ecb1af..bd5a46f06 100644 --- a/spec/python/test_valid_fail_contents.py +++ b/spec/python/test_valid_fail_contents.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_contents import ValidFailContents import kaitaistruct diff --git a/spec/python/test_valid_fail_eq_bytes.py b/spec/python/test_valid_fail_eq_bytes.py index 18821b1d3..83f43ec0d 100644 --- a/spec/python/test_valid_fail_eq_bytes.py +++ b/spec/python/test_valid_fail_eq_bytes.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_eq_bytes import ValidFailEqBytes import kaitaistruct diff --git a/spec/python/test_valid_fail_eq_int.py b/spec/python/test_valid_fail_eq_int.py index 2fb168c04..415a45b41 100644 --- a/spec/python/test_valid_fail_eq_int.py +++ b/spec/python/test_valid_fail_eq_int.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_eq_int import ValidFailEqInt import kaitaistruct diff --git a/spec/python/test_valid_fail_eq_str.py b/spec/python/test_valid_fail_eq_str.py index 070e0eb77..3b6927094 100644 --- a/spec/python/test_valid_fail_eq_str.py +++ b/spec/python/test_valid_fail_eq_str.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_eq_str import ValidFailEqStr import kaitaistruct diff --git a/spec/python/test_valid_fail_expr.py b/spec/python/test_valid_fail_expr.py index 47dfa52fa..56c8342b4 100644 --- a/spec/python/test_valid_fail_expr.py +++ b/spec/python/test_valid_fail_expr.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_expr import ValidFailExpr import kaitaistruct diff --git a/spec/python/test_valid_fail_inst.py b/spec/python/test_valid_fail_inst.py index d6a84636e..b542b4b97 100644 --- a/spec/python/test_valid_fail_inst.py +++ b/spec/python/test_valid_fail_inst.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_inst import ValidFailInst import kaitaistruct diff --git a/spec/python/test_valid_fail_max_int.py b/spec/python/test_valid_fail_max_int.py index 0252dca7c..ee197e198 100644 --- a/spec/python/test_valid_fail_max_int.py +++ b/spec/python/test_valid_fail_max_int.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_max_int import ValidFailMaxInt import kaitaistruct diff --git a/spec/python/test_valid_fail_min_int.py b/spec/python/test_valid_fail_min_int.py index 8d37d0caa..c3a90315f 100644 --- a/spec/python/test_valid_fail_min_int.py +++ b/spec/python/test_valid_fail_min_int.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_min_int import ValidFailMinInt import kaitaistruct diff --git a/spec/python/test_valid_fail_range_bytes.py b/spec/python/test_valid_fail_range_bytes.py index ec7f7f1a9..edd388741 100644 --- a/spec/python/test_valid_fail_range_bytes.py +++ b/spec/python/test_valid_fail_range_bytes.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_range_bytes import ValidFailRangeBytes import kaitaistruct diff --git a/spec/python/test_valid_fail_range_float.py b/spec/python/test_valid_fail_range_float.py index 085139b93..0bf119bc2 100644 --- a/spec/python/test_valid_fail_range_float.py +++ b/spec/python/test_valid_fail_range_float.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_range_float import ValidFailRangeFloat import kaitaistruct diff --git a/spec/python/test_valid_fail_range_int.py b/spec/python/test_valid_fail_range_int.py index f7f1f1065..d1a1ab763 100644 --- a/spec/python/test_valid_fail_range_int.py +++ b/spec/python/test_valid_fail_range_int.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_range_int import ValidFailRangeInt import kaitaistruct diff --git a/spec/python/test_valid_fail_range_str.py b/spec/python/test_valid_fail_range_str.py index d2db2fa80..e1b1a0194 100644 --- a/spec/python/test_valid_fail_range_str.py +++ b/spec/python/test_valid_fail_range_str.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_fail_range_str import ValidFailRangeStr import kaitaistruct diff --git a/spec/python/test_valid_long.py b/spec/python/test_valid_long.py index 74b43eb3d..d711c57d6 100644 --- a/spec/python/test_valid_long.py +++ b/spec/python/test_valid_long.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_long import ValidLong class TestValidLong(unittest.TestCase): def test_valid_long(self): with ValidLong.from_file('src/fixed_struct.bin') as r: - pass diff --git a/spec/python/test_valid_not_parsed_if.py b/spec/python/test_valid_not_parsed_if.py index 2224a5673..844cb6e1b 100644 --- a/spec/python/test_valid_not_parsed_if.py +++ b/spec/python/test_valid_not_parsed_if.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_not_parsed_if import ValidNotParsedIf class TestValidNotParsedIf(unittest.TestCase): def test_valid_not_parsed_if(self): with ValidNotParsedIf.from_file('src/fixed_struct.bin') as r: - pass diff --git a/spec/python/test_valid_optional_id.py b/spec/python/test_valid_optional_id.py index 7a4b5cc4e..e093f8400 100644 --- a/spec/python/test_valid_optional_id.py +++ b/spec/python/test_valid_optional_id.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_optional_id import ValidOptionalId class TestValidOptionalId(unittest.TestCase): def test_valid_optional_id(self): with ValidOptionalId.from_file('src/fixed_struct.bin') as r: - pass diff --git a/spec/python/test_valid_short.py b/spec/python/test_valid_short.py index 44235b62f..f0618e65b 100644 --- a/spec/python/test_valid_short.py +++ b/spec/python/test_valid_short.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_short import ValidShort class TestValidShort(unittest.TestCase): def test_valid_short(self): with ValidShort.from_file('src/fixed_struct.bin') as r: - pass diff --git a/spec/python/test_valid_switch.py b/spec/python/test_valid_switch.py index 926eff722..3bcad1b03 100644 --- a/spec/python/test_valid_switch.py +++ b/spec/python/test_valid_switch.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from valid_switch import ValidSwitch class TestValidSwitch(unittest.TestCase): def test_valid_switch(self): with ValidSwitch.from_file('src/fixed_struct.bin') as r: - pass diff --git a/spec/python/test_yaml_ints.py b/spec/python/test_yaml_ints.py index d38c42c45..2141d2e94 100644 --- a/spec/python/test_yaml_ints.py +++ b/spec/python/test_yaml_ints.py @@ -1,13 +1,11 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from yaml_ints import YamlInts class TestYamlInts(unittest.TestCase): def test_yaml_ints(self): with YamlInts.from_file('src/fixed_struct.bin') as r: - self.assertEqual(r.test_u4_dec, 4294967295) self.assertEqual(r.test_u4_hex, 4294967295) self.assertEqual(r.test_u8_dec, 18446744073709551615) diff --git a/spec/python/test_zlib_surrounded.py b/spec/python/test_zlib_surrounded.py index 4a22da881..d4484976f 100644 --- a/spec/python/test_zlib_surrounded.py +++ b/spec/python/test_zlib_surrounded.py @@ -1,11 +1,9 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from zlib_surrounded import ZlibSurrounded class TestZlibSurrounded(unittest.TestCase): def test_zlib_surrounded(self): with ZlibSurrounded.from_file('src/zlib_surrounded.bin') as r: - self.assertEqual(r.zlib.num, -1) diff --git a/spec/python/test_zlib_with_header_78.py b/spec/python/test_zlib_with_header_78.py index e4c9dc9ef..f02c0193c 100644 --- a/spec/python/test_zlib_with_header_78.py +++ b/spec/python/test_zlib_with_header_78.py @@ -1,7 +1,6 @@ # Autogenerated from KST: please remove this line if doing any edits by hand! import unittest - from zlib_with_header_78 import ZlibWithHeader78 class TestZlibWithHeader78(unittest.TestCase):