aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tests.py
blob: 7b5ec03bb0621c7de9cb0a445514a125bc1db224 (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
'''
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.pq.



    def test_persistent_queue():
        pq = PersistentQueue()