10 lines
368 B
Python
10 lines
368 B
Python
|
from tests import BaseWorkerTestCase
|
||
|
from catfish.worker.server import send_to_server
|
||
|
from catfish.utils.processes import is_process_running
|
||
|
|
||
|
|
||
|
class WorkerServerTestCase(BaseWorkerTestCase):
|
||
|
def test_server_creates_process(self):
|
||
|
response = send_to_server({"type": "process", "command": "yes"})
|
||
|
self.assertTrue(is_process_running(response['pid']))
|