diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-09-22 02:21:08 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-09-22 02:21:08 -0500 |
commit | 3e0a674817cd4345c9b20d910ee81db406717234 (patch) | |
tree | 0123aee5d150f4377178f5fd31830ebeeea45825 /tests/test_vba.py | |
parent | 80cda61ec4478db3253741bc32beae0f6edd5b78 (diff) |
test the walk_into_new_bark_town vba method
Diffstat (limited to 'tests/test_vba.py')
-rw-r--r-- | tests/test_vba.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_vba.py b/tests/test_vba.py index ec74a55..e9ff73c 100644 --- a/tests/test_vba.py +++ b/tests/test_vba.py @@ -142,5 +142,21 @@ class VbaTests(unittest.TestCase): self.assertNotEqual(first_map_y, second_map_y) + def test_speedrunner_walk_into_new_bark_town(self): + runner = autoplayer.SpeedRunner(cry=None) + runner.setup() + runner.skip_intro(skip=True) + runner.handle_mom(skip=True) + runner.walk_into_new_bark_town(skip=False) + + # test again if the game is in a state where the player can walk + first_map_y = self.get_wram_value("MapY") + runner.cry.move("d") + second_map_y = self.get_wram_value("MapY") + + self.assertNotEqual(first_map_y, second_map_y) + + # TODO: test the current map id against what it should be + if __name__ == "__main__": unittest.main() |