blob: c880045b0d779add257be20203bb5d0c862de8b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
'''
This file tests basic working of the implementation such as:
- PersistentQueue
- Server protocol
'''
import asyncio
import ../src/wqueue2
class TestFileQueue:
def setup(self):
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
self.pq = PersistentQueue()
def teardown(self):
asyncio.set_event_loop(None)
def test_reload_from_filename(self):
self.pq.
def test_save_to_filename(self):
pass
def test_pass_one_job(self):
pass
def test_persistent_queue():
pq = PersistentQueue()
|