mirror of
https://github.com/gryf/fs-uae-wrapper.git
synced 2026-01-05 21:34:17 +01:00
Added simple test for plain module
This commit is contained in:
18
tests/test_plain.py
Normal file
18
tests/test_plain.py
Normal 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()
|
||||||
Reference in New Issue
Block a user