mirror of
https://github.com/gryf/fs-uae-wrapper.git
synced 2025-12-18 12:00:28 +01:00
17 lines
499 B
Python
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())
|