1
0
mirror of https://github.com/gryf/fs-uae-wrapper.git synced 2025-12-19 04:20:23 +01:00

Make plain wrapper module use base.Base class

This commit is contained in:
2017-01-08 11:21:43 +01:00
parent a14871c52f
commit 8a6ddda7c8
3 changed files with 26 additions and 22 deletions

View File

@@ -11,8 +11,12 @@ from fs_uae_wrapper import utils
class TestPlainModule(TestCase):
@mock.patch('subprocess.call')
def test_show(self, subprocess_call):
@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'])
plain.run('some.conf', utils.CmdOption(), None)
subprocess_call.assert_called_once()
def test_clean(self):
wrapper = plain.Wrapper('some.conf', utils.CmdOption(), {})
self.assertIsNone(wrapper.clean())