mirror of
https://github.com/mnaberez/py65.git
synced 2025-08-08 13:25:01 +00:00
Add test that "mpu" command is not case sensitive
This commit is contained in:
@@ -318,6 +318,12 @@ class MonitorTests(unittest.TestCase):
|
|||||||
self.assertEqual('Reset with new MPU 65C02', lines[0])
|
self.assertEqual('Reset with new MPU 65C02', lines[0])
|
||||||
self.assertEqual('65C02', mon._mpu.name)
|
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):
|
def test_help_mpu(self):
|
||||||
stdout = StringIO()
|
stdout = StringIO()
|
||||||
mon = Monitor(stdout=stdout)
|
mon = Monitor(stdout=stdout)
|
||||||
|
Reference in New Issue
Block a user