1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-06-29 09:29:36 +00:00

Add test that "mpu" command is not case sensitive

This commit is contained in:
Mike Naberezny 2011-08-21 15:38:58 -07:00
parent 454bfa0f03
commit 624b828796

View File

@ -318,6 +318,12 @@ class MonitorTests(unittest.TestCase):
self.assertEqual('Reset with new MPU 65C02', lines[0])
self.assertEqual('65C02', mon._mpu.name)
def test_mpu_select_is_not_case_sensitive(self):
stdout = StringIO()
mon = Monitor(stdout=stdout)
mon.do_mpu('65c02')
self.assertEqual('65C02', mon._mpu.name)
def test_help_mpu(self):
stdout = StringIO()
mon = Monitor(stdout=stdout)