EEFEFEEEEEEEEEEEEEE......E.EEE.E.....E.EE........F.....F............... ====================================================================== ERROR: test suite for ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 208, in run self.setUp() File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 291, in setUp self.setupContext(ancestor) File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 314, in setupContext try_run(context, names) File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 469, in try_run return func() File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 102, in setUpClass cls.rom = direct_load_rom() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 112, in direct_load_rom file_handler = open(filename, "rb") IOError: [Errno 2] No such file or directory: '../baserom.gbc' ====================================================================== ERROR: test suite for ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 208, in run self.setUp() File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 291, in setUp self.setupContext(ancestor) File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 314, in setupContext try_run(context, names) File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line 469, in try_run return func() File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 258, in setUpClass load_rom() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 125, in load_rom elif os.lstat(filename).st_size != len(rom): OSError: [Errno 2] No such file or directory: '../baserom.gbc' ====================================================================== ERROR: test_parse_text_engine_script_at (integration.tests.TestEncodedText) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 237, in test_parse_text_engine_script_at p = parse_text_engine_script_at(0x197185, debug=False) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 943, in parse_text_engine_script_at return TextScript(address, map_group=map_group, map_id=map_id, debug=debug, show=show, force=force) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 263, in __init__ self.parse() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 308, in parse load_rom() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 125, in load_rom elif os.lstat(filename).st_size != len(rom): OSError: [Errno 2] No such file or directory: '../baserom.gbc' ====================================================================== ERROR: test_parse_all_map_headers (integration.tests.TestMapParsing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 377, in test_parse_all_map_headers parse_all_map_headers(debug=False) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 6634, in parse_all_map_headers new_parsed_map = parse_map_header_at(map_header_offset, map_group=group_id, map_id=map_id, debug=debug) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 5087, in parse_map_header_at map_header = MapHeader(address, map_group=map_group, map_id=map_id, debug=debug) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 5043, in __init__ self.parse() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 5054, in parse self.second_map_header_address = pointers.calculate_pointer(ord(rom[address+3])+(ord(rom[address+4])<<8), self.bank.byte) IndexError: string index out of range -------------------- >> begin captured logging << -------------------- root: DEBUG: parsing a map header at 0x0 root: DEBUG: creating a MapHeader at 0x0 map_group=1 map_id=1 root: DEBUG: parsing a MapHeader at 0x0 --------------------- >> end captured logging << --------------------- ====================================================================== ERROR: test_PointerLabelParam_no_bank (integration.tests.TestMultiByteParam) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 316, in test_PointerLabelParam_no_bank self.setup_for(PointerLabelParam, bank=None) File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 303, in setup_for self.cls = somecls(address=address, size=byte_size, **kwargs) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 1365, in __init__ MultiByteParam.__init__(self, *args, **kwargs) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 1320, in __init__ self.parse() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 1368, in parse self.parsed_address = calculate_pointer_from_bytes_at(self.address, bank=self.bank) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 192, in calculate_pointer_from_bytes_at byte1 = ord(rom[address]) IndexError: string index out of range ====================================================================== ERROR: test_three_byte_param (integration.tests.TestMultiByteParam) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 313, in test_three_byte_param self.setup_for(MultiByteParam, byte_size=3) File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 303, in setup_for self.cls = somecls(address=address, size=byte_size, **kwargs) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 1320, in __init__ self.parse() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 1324, in parse self.parsed_number = self.bytes[0] + (self.bytes[1] << 8) IndexError: list index out of range ====================================================================== ERROR: test_two_byte_param (integration.tests.TestMultiByteParam) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 309, in test_two_byte_param self.setup_for(MultiByteParam, byte_size=2) File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 303, in setup_for self.cls = somecls(address=address, size=byte_size, **kwargs) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 1320, in __init__ self.parse() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 1324, in parse self.parsed_number = self.bytes[0] + (self.bytes[1] << 8) IndexError: list index out of range ====================================================================== ERROR: test_event_address (integration.tests.TestPostParsing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 356, in test_event_address self.assertEqual(map_names[17][5]["event_address"], 0x194d67) KeyError: 'event_address' ====================================================================== ERROR: test_map_connection_counts (integration.tests.TestPostParsing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 346, in test_map_connection_counts self.assertEqual(map_names[7][1]["connections"], 0) KeyError: 'connections' ====================================================================== ERROR: test_map_sizes (integration.tests.TestPostParsing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 340, in test_map_sizes self.assertEqual(map_names[15][1]["height"], 18) KeyError: 'height' ====================================================================== ERROR: test_people_event_counts (integration.tests.TestPostParsing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 360, in test_people_event_counts self.assertEqual(len(map_names[23][3]["people_events"]), 4) KeyError: 'people_events' ====================================================================== ERROR: test_second_map_header_address (integration.tests.TestPostParsing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 352, in test_second_map_header_address self.assertEqual(map_names[11][1]["second_map_header_address"], 0x9509c) KeyError: 'second_map_header_address' ====================================================================== ERROR: test_signpost_counts (integration.tests.TestPostParsing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 330, in test_signpost_counts self.assertEqual(len(map_names[1][1]["signposts"]), 0) KeyError: 'signposts' ====================================================================== ERROR: test_warp_counts (integration.tests.TestPostParsing) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 335, in test_warp_counts self.assertEqual(map_names[10][5]["warp_count"], 9) KeyError: 'warp_count' ====================================================================== ERROR: test_rom_interval (integration.tests.TestRomStr) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 187, in test_rom_interval load_rom() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 125, in load_rom elif os.lstat(filename).st_size != len(rom): OSError: [Errno 2] No such file or directory: '../baserom.gbc' ====================================================================== ERROR: test_rom_until (integration.tests.TestRomStr) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 200, in test_rom_until load_rom() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 125, in load_rom elif os.lstat(filename).st_size != len(rom): OSError: [Errno 2] No such file or directory: '../baserom.gbc' ====================================================================== ERROR: test_find_all_text_pointers_in_script_engine_script (integration.tests.TestScript) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 249, in test_find_all_text_pointers_in_script_engine_script script = parse_script_engine_script_at(address, debug=False) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 3460, in parse_script_engine_script_at return Script(address, map_group=map_group, map_id=map_id, force=force, debug=debug, origin=origin) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 3294, in __init__ self.parse(self.address, **kwargs) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 3365, in parse load_rom() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 125, in load_rom elif os.lstat(filename).st_size != len(rom): OSError: [Errno 2] No such file or directory: '../baserom.gbc' ====================================================================== ERROR: test_analyze_intervals (tests.TestAsmList) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/tests.py", line 521, in test_analyze_intervals process_incbins() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 6843, in process_incbins load_asm() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 137, in load_asm asm = direct_load_asm(filename=filename) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 130, in direct_load_asm asm = open(filename, "r").read().split("\n") IOError: [Errno 2] No such file or directory: '../main.asm' ====================================================================== ERROR: test_find_incbin_to_replace_for (tests.TestAsmList) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/tests.py", line 493, in test_find_incbin_to_replace_for process_incbins() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 6843, in process_incbins load_asm() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 137, in load_asm asm = direct_load_asm(filename=filename) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 130, in direct_load_asm asm = open(filename, "r").read().split("\n") IOError: [Errno 2] No such file or directory: '../main.asm' ====================================================================== ERROR: test_find_labels_without_addresses (tests.TestAsmList) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/tests.py", line 392, in test_find_labels_without_addresses labels = find_labels_without_addresses() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 7700, in find_labels_without_addresses for (line_number, line) in enumerate(asm): TypeError: 'NoneType' object is not iterable ====================================================================== ERROR: test_generate_diff_insert (tests.TestAsmList) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/tests.py", line 534, in test_generate_diff_insert diff = generate_diff_insert(0, "the real first line", debug=False) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 6961, in generate_diff_insert original = "\n".join(line for line in asm) TypeError: 'NoneType' object is not iterable ====================================================================== ERROR: test_get_labels_between (tests.TestAsmList) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/tests.py", line 406, in test_get_labels_between labels = x(0, 2, 0x12) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 7718, in get_labels_between load_asm() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 137, in load_asm asm = direct_load_asm(filename=filename) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 130, in direct_load_asm asm = open(filename, "r").read().split("\n") IOError: [Errno 2] No such file or directory: '../main.asm' ====================================================================== ERROR: test_process_incbins (tests.TestAsmList) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/tests.py", line 465, in test_process_incbins processed_incbins = process_incbins() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 6843, in process_incbins load_asm() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 137, in load_asm asm = direct_load_asm(filename=filename) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 130, in direct_load_asm asm = open(filename, "r").read().split("\n") IOError: [Errno 2] No such file or directory: '../main.asm' ====================================================================== ERROR: test_reset_incbins (tests.TestAsmList) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/tests.py", line 479, in test_reset_incbins reset_incbins() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 6886, in reset_incbins load_asm() File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 137, in load_asm asm = direct_load_asm(filename=filename) File "/home/kanzure/code/pokemon-reverse-engineering-tools/pokemontools/crystal.py", line 130, in direct_load_asm asm = open(filename, "r").read().split("\n") IOError: [Errno 2] No such file or directory: '../main.asm' ====================================================================== ERROR: test_split_incbin_line_into_three (tests.TestAsmList) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/mock.py", line 1201, in patched return func(*args, **keywargs) File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/tests.py", line 507, in test_split_incbin_line_into_three isolate_incbins(asm=asm) TypeError: isolate_incbins() takes no arguments (1 given) ====================================================================== FAIL: test_parse_text_at2 (integration.tests.TestEncodedText) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 232, in test_parse_text_at2 self.assertIn("encyclopedia", oakspeech) AssertionError: 'encyclopedia' not found in '' ====================================================================== FAIL: test_process_00_subcommands (integration.tests.TestEncodedText) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/integration/tests.py", line 226, in test_process_00_subcommands self.assertEqual(len(g), 42) AssertionError: 1 != 42 ====================================================================== FAIL: test_get_label_for (tests.TestCram) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/tests.py", line 211, in test_get_label_for self.assertEqual(get_label_for(5), "poop") AssertionError: 'OlivinePokeCenter1F_MapHeader' != 'poop' ====================================================================== FAIL: test_load_map_group_offsets (tests.TestCram) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kanzure/code/pokemon-reverse-engineering-tools/tests/tests.py", line 172, in test_load_map_group_offsets self.assertEqual(len(addresses), 26, msg="there should be 26 map groups") AssertionError: there should be 26 map groups ---------------------------------------------------------------------- Ran 69 tests in 0.073s FAILED (errors=25, failures=4)