1
0
mirror of https://github.com/gryf/fs-uae-wrapper.git synced 2025-12-24 07:02:26 +01:00

Added simple test for plain module

This commit is contained in:
2016-12-27 20:10:39 +01:00
parent 36fe31c99e
commit 11202903d5

18
tests/test_plain.py Normal file
View File

@@ -0,0 +1,18 @@
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('subprocess.call')
def test_show(self, subprocess_call):
plain.run('some.conf', utils.CmdOption(), None)
subprocess_call.assert_called_once()