mirror of
https://github.com/gryf/fs-uae-wrapper.git
synced 2025-12-19 04:20:23 +01:00
23 lines
591 B
Python
23 lines
591 B
Python
from unittest import TestCase
|
|
|
|
try:
|
|
from unittest import mock
|
|
except ImportError:
|
|
import mock
|
|
|
|
from fs_uae_wrapper import plain
|
|
from fs_uae_wrapper import 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())
|