summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-22 02:07:43 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-22 02:07:43 -0500
commitffad17245b4b2ffa33a97fde0bd51bd643fc1faa (patch)
tree4e7c9e633509a4ca4e83127c1afd89f6f86a9aa7 /tests
parentf52f6148d775e51a9cb68201effef905c0880c75 (diff)
remove old jython comments from the vba tests
Diffstat (limited to 'tests')
-rw-r--r--tests/test_vba.py25
1 files changed, 5 insertions, 20 deletions
diff --git a/tests/test_vba.py b/tests/test_vba.py
index 3a2de72..1b151b7 100644
--- a/tests/test_vba.py
+++ b/tests/test_vba.py
@@ -56,16 +56,6 @@ class OtherVbaTests(unittest.TestCase):
self.assertEqual(expected_result, button_sequence)
class VbaTests(unittest.TestCase):
- # unittest in jython2.5 doesn't seem to have setUpClass ?? Man, why am I on
- # jython2.5? This is ancient.
- #@classmethod
- #def setUpClass(cls):
- # # get a good game state
- # cls.state = bootstrap()
- #
- # # figure out addresses
- # cls.wram = setup_wram()
-
cry = None
wram = None
@@ -80,21 +70,16 @@ class VbaTests(unittest.TestCase):
cls.vba.state = cls.bootstrap_state
- def get_wram_value(self, name):
- return self.vba.memory[self.wram[name]]
+ @classmethod
+ def tearDownClass(cls):
+ cls.vba.shutdown()
def setUp(self):
- #if self.cry:
- # # clean up the emulator's state
- # self.cry.shutdown()
- #self.cry = vba.crystal()
- #self.vba = self.cry.vba
-
# reset to whatever the bootstrapper created
self.vba.state = self.bootstrap_state
- #def tearDown(self):
- # self.vba.shutdown()
+ def get_wram_value(self, name):
+ return self.vba.memory[self.wram[name]]
def test_movement_changes_player_direction(self):
player_direction = self.get_wram_value("PlayerDirection")