449
You can also test commands that read user interaction::
451
def test_confirm_action(self):
452
"""You can write tests that demonstrate user confirmation"""
453
commands.builtin_command_registry.register(cmd_test_confirm)
454
self.addCleanup(commands.builtin_command_registry.remove, 'test-confirm')
457
2>Really do it? [y/n]:
450
462
Import tariff tests
451
463
-------------------