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

Add test for help_radix()

This commit is contained in:
Mike Naberezny 2014-03-24 21:35:24 -07:00
parent c333cdf1dd
commit 6854fb9b3e

View File

@ -670,6 +670,13 @@ class MonitorTests(unittest.TestCase):
out = stdout.getvalue()
self.assertTrue(out.startswith('radix'))
def test_help_radix(self):
stdout = StringIO()
mon = Monitor(stdout=stdout)
mon.help_radix()
out = stdout.getvalue()
self.assertTrue(out.startswith("radix [H|D|O|B]"))
# registers
def test_shortcut_for_registers(self):