1
0
mirror of https://github.com/gryf/fs-uae-wrapper.git synced 2025-12-18 03:50:28 +01:00
Files
fs-uae-wrapper/tests/test_plain.py
2024-09-14 09:22:41 +02:00

17 lines
499 B
Python

from unittest import TestCase, mock
from fs_uae_wrapper import plain, utils
class TestPlainModule(TestCase):
@mock.patch('fs_uae_wrapper.utils.run_command')
def test_run(self, run_command):
wrapper = plain.Wrapper('some.conf', utils.CmdOption(), {})
wrapper.run()
run_command.assert_called_once_with(['fs-uae', 'some.conf'])
def test_clean(self):
wrapper = plain.Wrapper('some.conf', utils.CmdOption(), {})
self.assertIsNone(wrapper.clean())